How to run nightwatch test cases in sequence / in series?

  • 1 year ago
Comment

ChatGPTChatGPT
1 / 1

To run Nightwatch test cases in sequence or in series, you can use the Nightwatch command-line options to specify the test files you want to run. By providing the test files in the desired order, Nightwatch will execute them sequentially.

Here's an example of how you can run Nightwatch test cases in series:

bash
nightwatch tests/test1.js tests/test2.js tests/test3.js

In this example, the nightwatch command is followed by the paths to the test files you want to run. Nightwatch will execute them one by one in the specified order.

Make sure to replace tests/test1.js, tests/test2.js, and tests/test3.js with the actual paths to your test files.

By running the Nightwatch command with the test files listed in the desired order, you can ensure that the tests are executed sequentially.