Skip to content

Commit dadc5cb

Browse files
DavertMikclaude
andcommitted
feat(dry-run): make step numbering opt-in via --numbers
Step numbering is now off by default. Pass --numbers (alongside --debug/--steps/--verbose) to prefix each leaf step with a per-test index. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 810bd1d commit dadc5cb

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

bin/codecept.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ program
259259
.option(commandFlags.verbose.flag, commandFlags.verbose.description)
260260
.option(commandFlags.debug.flag, commandFlags.debug.description)
261261
.option('--no-ansi', 'disable colored / ANSI-styled output')
262+
.option('--numbers', 'prefix each step with a per-test index number')
262263
.action(commandHandler('../lib/command/dryRun.js'))
263264

264265
program

lib/command/dryRun.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default async function (test, options) {
3939
await printTests(codecept.testFiles)
4040
return
4141
}
42-
numberSteps()
42+
if (options.numbers) numberSteps()
4343
event.dispatcher.on(event.all.result, printFooter)
4444
await codecept.run(test)
4545
} catch (err) {

0 commit comments

Comments
 (0)