NodeJS by Example: Test Runner cli
The test runner also contains multiple command line options that allow you to customize the behavior of the test runner. |
|
1. By adding the --test-only flag you can execute tests that have the only option set to true. |
|
2. Using the flag --test-name-pattern you can run tests whose name matches the given pattern. The pattern is interpreted as a regular expression. You can also chain --test-name-pattern flag to run multiple tests.
|
|