diff --git a/bin/codecept.js b/bin/codecept.js index a6c63d5eb..b1e0a3737 100755 --- a/bin/codecept.js +++ b/bin/codecept.js @@ -131,6 +131,8 @@ program.command('run-workers ') .option('--tests', 'run only JS test files and skip features') .option('--profile [value]', 'configuration profile to be used') .option('-p, --plugins ', 'enable plugins, comma-separated') + .option('-O, --reporter-options ', 'reporter-specific options') + .option('-R, --reporter ', 'specify the reporter to use') .action(require('../lib/command/run-workers')); program.command('run-multiple [suites...]') diff --git a/lib/plugin/commentStep.js b/lib/plugin/commentStep.js index 6a9183f35..e1d3f54a0 100644 --- a/lib/plugin/commentStep.js +++ b/lib/plugin/commentStep.js @@ -107,7 +107,10 @@ module.exports = function (config) { event.dispatcher.on(event.step.started, (step) => { if (currentCommentStep) { const metaStep = getRootMetaStep(step); - metaStep.metaStep = currentCommentStep; + + if (metaStep !== currentCommentStep) { + metaStep.metaStep = currentCommentStep; + } } });