question: can I filter which tests run?
- Dominant language
- JavaScript
- Stars
- 1.9k
- Forks
- 359
- PR merge metrics
- No merged PRs in 30d
Description
My build scripts are currently using nodeunit.reporters["default"].run() to run tests against a list of files.
Is it possible to only run some tests within a file? Ultimately I'd like to be able to only run tests that failed in the past run. I see I can track which tests failed, so I'd like to pass that list so only those tests run on the next attempt.
The reason is my tests are slow :) I have a lot of integration tests, and with my workflow I usually just want to run those few tests first.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading the nodeunit.reporters["default"].run() entry point described in the issue and trace how it receives the list of test files. Determine whether selecting tests within a file and rerunning a supplied list of previously failed tests can be specified without breaking existing runs. Done means the requested filtering behavior is defined and verified for slow integration-test workflows.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100