Permalink
Browse files

parse options from file

  • Loading branch information...
1 parent 6b451c9 commit ac31b4b83ddba3c687a388d0a31c399c94f2c61b @gitaaron committed Oct 7, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 test_main.js
View
@@ -1,10 +1,12 @@
-require([], function() {
+require(['fs', 'path'], function(fs, path) {
+
var files = [];
var reporter_path = 'lib/reporters/';
var reporter_module = reporter_path + 'default';
var args = process.ARGV.slice(2);
- var options = {};
+ var content = fs.readFileSync(path.resolve()+'/bin/nodeunit.json');
+ var options = JSON.parse(content);
args.forEach(function(arg) {
if(arg.slice(0,11)=='--reporter=') {

0 comments on commit ac31b4b

Please sign in to comment.