Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Commit

Permalink
added a cli tool. nodetest
Browse files Browse the repository at this point in the history
  • Loading branch information
dominictarr committed Aug 15, 2011
1 parent a7f0051 commit 9d363bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cmd.js
@@ -1,3 +1,5 @@
#! /usr/bin/env node

var Reporter = require('test-report')
, path = require('path')
, fs = require('fs')
Expand Down Expand Up @@ -44,7 +46,6 @@ function go(adapter) {
, reporter = new Reporter(tests.length > 1 ? process.cwd() : tests[0])
, shutdowns


process.on('SIGINT',function (){
reporter.error(new Error("test manualy stopped"))
process.exit()
Expand Down
5 changes: 4 additions & 1 deletion package.json
@@ -1,6 +1,6 @@
{ "name": "test-cmd"
, "version": "1.3.0"
, "description": ""
, "description": "minimal tooling to create test runner commands"
, "homepage": "http://github.com/dominictarr/test-cmd"
, "main": "./cmd"
, "repository":
Expand All @@ -10,5 +10,8 @@
"test-report": "1"
, "test-report-view": "1"
}
, "bin": {
"nodetest": "./cmd.js"
}
, "author": "Dominic Tarr <dominic.tarr@gmail.com> (http://bit.ly/dominictarr)"
, "scripts": { "test": "meta-test test/*.js" } }

0 comments on commit 9d363bc

Please sign in to comment.