Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ using `sudo make install`. Example usage:

nodeunit testmodule1.js testfolder [...]

If no entry file specified, `test` defaults.

The default test reporter uses color output, because I think that's more fun :) I
intend to add a no-color option in future. To give you a feeling of the fun you'll
be having writing tests, lets fix the example at the start of the README:
Expand Down
5 changes: 2 additions & 3 deletions bin/nodeunit
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,9 @@ args.forEach(function (arg) {
}
});

// defaults to `test`
if (files.length === 0) {
console.log('Files required.');
console.log(usage);
process.exit(1);
files = ['test'];
}

if (config_file) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,6 @@
"tap": ">=0.2.3"
},
"scripts": {
"test": "node ./bin/nodeunit test"
"test": "node ./bin/nodeunit"
}
}