Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added command to run tests: 'asynct'

  • Loading branch information...
commit a87f89d3f2437133364e1edc059a71a895208355 1 parent 9648a5c
@dominictarr dominictarr authored
Showing with 25 additions and 0 deletions.
  1. +25 −0 bin/asynct
View
25 bin/asynct
@@ -0,0 +1,25 @@
+#! /usr/bin/env node
+
+try {
+ // always check for a local copy of async_testing first
+ var testing = require('async_testing');

Are you missing a ./ here?

@dominictarr Collaborator

good spotting.

fixed in bff7283

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+}
+catch(err) {
+ if( err.message == "Cannot find module './async_testing'" ) {
+ // look in the path for async_testing
+ var testing = require('async_testing');
+ }
+ else {
+ throw err;
+ }
+}
+
+exports.test = function (test){
+ test.ok(false,"this should not be called!")
+}
+process.ARGV.shift() //node
+process.ARGV.shift() // this file... if i leave this in it tried to run this file as a test, which goes into infinite loop and doesn't exit.
+process.ARGV.unshift('node')
+
+testing.run(process.ARGV);
+
Please sign in to comment.
Something went wrong with that request. Please try again.