-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
runtime: don't fail the test run for undefined/ambiguous when in dry …
…run (#1814) * update scenario (failing) * clarify * change logic * refactor to share logic across serial+parallel * add changelog * add doco for dry run * add link to changelog entry
- Loading branch information
1 parent
c3a3313
commit 2333e5f
Showing
7 changed files
with
65 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Dry Run | ||
|
||
You can run cucumber-js in "Dry Run" mode like this: | ||
|
||
```shell | ||
$ cucumber-js --dry-run | ||
``` | ||
|
||
The effect is that cucumber-js will still do all the aggregation work of looking at your feature files, loading your support code etc but without actually executing the tests. Specifically: | ||
|
||
- No [hooks](./support_files/hooks.md) are executed | ||
- Steps are reported as "skipped" instead of being executed | ||
- Undefined and ambiguous steps are reported, but don't cause the process to fail | ||
|
||
A few examples where this is useful: | ||
|
||
- Finding unused step definitions with the [usage formatter](./formatters.md#usage) | ||
- Generating [snippets](./snippets.md) for all undefined steps with the [snippets formatter](./formatters.md#snippets) | ||
- Checking if your path, tag expression etc matches the scenarios you expect it to | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters