Can I run only one method in a testcase?
- Dominant language
- JavaScript
- Stars
- 1.9k
- Forks
- 359
- PR merge metrics
- No merged PRs in 30d
Description
Test case example as follows (mytest.js):
exports["test1f"] = function(test){
test.expect(1);
test.ok(true, "this assertion should pass");
test.done();
};
exports["test2"] = function(test){
test.ok(true, "this assertion should pass");
test.done();
};
I hope that I can run test2 only like this:
nodeunit test.js test2
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the nodeunit command shown in the issue and trace how mytest.js test functions are selected and run. Add support for the requested test2 argument, then verify that the command runs test2 without running test1 while existing test commands continue to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cli, testing-qa
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100