Permalink
Browse files

Make it easier to specify which tests to be run

  • Loading branch information...
1 parent c018120 commit 4950bb33d5657a51d3dd61bb61c0dbafca0034b7 @marcuswestin committed Apr 25, 2012
Showing with 16 additions and 1 deletion.
  1. +16 −1 scripts/run-tests.js
View
@@ -1,2 +1,17 @@
var reporter = require('nodeunit').reporters.default;
-reporter.run(['test/tests']);
+
+var run = function(files) {
+ reporter.run(['test/tests/'+files[0]], null, function(err) {
+ if (err) { return }
+ files.shift()
+ if (files.length) { run(files) }
+ })
+}
+
+var tests = []
+tests.push('test-1-runtime-library.js')
+tests.push('test-2-parser.js')
+tests.push('test-3-resolver.js')
+tests.push('test-4-compiler.js')
+
+run(tests)

0 comments on commit 4950bb3

Please sign in to comment.