Selenium/How-to/Run a subset of a test suite

From mediawiki.org

Environments[edit]

This tip works if you're targeting:

Run Selenium tests[edit]

Usually you will run all tests.

npm run selenium-test

When you're debugging, you usually want to run only one file.

npm run selenium-test -- --spec tests/selenium/specs/[FILE-NAME]

If the file is big, you can run only a subset of tests, or just one test.

npm run selenium-test -- --spec tests/selenium/specs/[FILE-NAME] --mochaOpts.grep [TEST-NAME]