caolan / caolan/nodeunit

question: can I filter which tests run?

Open
#223 0 comments 0 reactions 0 assignees View on GitHub
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

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.