File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -212,6 +212,8 @@ using `sudo make install`. Example usage:
212212
213213 nodeunit testmodule1.js testfolder [...]
214214
215+ If no entry file specified, ` test ` defaults.
216+
215217The default test reporter uses color output, because I think that's more fun :) I
216218intend to add a no-color option in future. To give you a feeling of the fun you'll
217219be having writing tests, lets fix the example at the start of the README:
Original file line number Diff line number Diff line change @@ -101,10 +101,9 @@ args.forEach(function (arg) {
101101 }
102102} ) ;
103103
104+ // defaults to `test`
104105if ( files . length === 0 ) {
105- console . log ( 'Files required.' ) ;
106- console . log ( usage ) ;
107- process . exit ( 1 ) ;
106+ files = [ 'test' ] ;
108107}
109108
110109if ( config_file ) {
Original file line number Diff line number Diff line change 8787 "tap" : " >=0.2.3"
8888 },
8989 "scripts" : {
90- "test" : " node ./bin/nodeunit test "
90+ "test" : " node ./bin/nodeunit"
9191 }
9292}
You can’t perform that action at this time.
0 commit comments