Allow nodeunit to run tests in a dir and recursively inside its child dirs#54
Allow nodeunit to run tests in a dir and recursively inside its child dirs#54aurium wants to merge 1 commit intocaolan:masterfrom aurium:master
Conversation
|
I think this is a good idea, but should include 2 changes:
Hopefully these changes would be acceptable? Thanks again for your contribution :) |
|
Thank you! |
|
I hope I will help with this issue in next week. Maybe we can use nopt to parse arguments? It installs with npm, so it does not be a problem for node users. |
|
@aurium I think this is a good patch. Can you please update your patch and resubmit? It doesn't merge cleanly. |
|
It would be rather good if something like this made it in. I frequently find myself arranging tests in subdirectories that mirrors the code they are testing and then being unable to run all the tests in one go without having some sort of test aggregator. |
|
+1 |
8 similar comments
|
👍 |
|
+1 |
|
+1 |
|
+1 |
|
+1 |
|
+1 |
|
+1 |
|
+1 |
|
Sorry for the incredibly long reply delay! I think #308 is a good solution. Waiting for the re-submission of the PR which merges cleanly and includes tests. |
|
resolved via #308 |
I'm using nodeunit in a project and i'm very happy with it, but my collection of test modules is going to be enough big to convince me to organize then in sub-directories. I start to do this, but i discover that "nodeunit test" command will not to run tests inside "test/helpers" or "test/models", so i made a patch to make util.modulePaths() to get it recursively to nodeunit.runFiles().
I don't see why not to work recursively, so i think that is the better default action.
I also made it with synchronous fileSystem methods because the testing action is not paralleled and the asynchronous code to do this is crazily more complex. :-)