We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46e2ba9 commit 6f0062fCopy full SHA for 6f0062f
lib/interfaces/scenarioConfig.js
@@ -35,6 +35,7 @@ class ScenarioConfig {
35
* @returns {this}
36
*/
37
retry(retries) {
38
+ if (process.env.SCENARIO_ONLY) retries = -retries;
39
this.test.retries(retries);
40
return this;
41
}
lib/ui.js
@@ -168,6 +168,7 @@ module.exports = function (suite) {
168
context.Scenario.only = function (title, opts, fn) {
169
const reString = `^${escapeRe(`${suites[0].title}: ${title}`.replace(/( \| {.+})?$/g, ''))}`;
170
mocha.grep(new RegExp(reString));
171
+ process.env.SCENARIO_ONLY = true;
172
return addScenario(title, opts, fn);
173
};
174
0 commit comments