When using tags as part of a suite configured to shard, it's possible for saucectl to launch jobs with no tests to run. e.g. if the feature file contains no scenarios matching the given tag expression.
Instead, we can have saucectl parse the feature files and exclude any files that do not match the given tag expression.
Comments
The equivalent behaviour for a cypress suite is enabled with the shardGrepEnabled configuration. Using the same name here could be confusing since "grep" doesn't really map to what's happening. Went with shardTagEnabled which is sort of meh.
The other option is to just enable the behaviour if the user has any tags specified in the suite. Since we're using the official gherkin parser there should be more confidence that the filtering works as expected.
Description
When using tags as part of a suite configured to shard, it's possible for saucectl to launch jobs with no tests to run. e.g. if the feature file contains no scenarios matching the given tag expression.
Instead, we can have saucectl parse the feature files and exclude any files that do not match the given tag expression.
Comments
The equivalent behaviour for a cypress suite is enabled with the
shardGrepEnabled
configuration. Using the same name here could be confusing since "grep" doesn't really map to what's happening. Went withshardTagEnabled
which is sort of meh.The other option is to just enable the behaviour if the user has any tags specified in the suite. Since we're using the official gherkin parser there should be more confidence that the filtering works as expected.
DEVX-2794