Created
          March 22, 2011 00:22 
        
      - 
      
 - 
        
Save stellaraccident/880523 to your computer and use it in GitHub Desktop.  
    My testrunner stub
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/usr/bin/env node | |
| require.paths.unshift(__dirname + '/local/lib'); | |
| process.chdir(__dirname); | |
| var files=process.argv.slice(2).map(function(v) { | |
| return v; | |
| }); | |
| if (files.length===0) { | |
| // Just run the whole directory | |
| files=['local/test', 'test']; | |
| } | |
| var reporter=require('nodeunit').reporters.default; | |
| reporter.run(files); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment