Selenium/How-to/Run a subset of a test suite
Appearance
Environments
[edit]This tip works if you're targeting:
- a local MediaWiki
- a remote wiki
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]