Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add test runner for travis and npm

  • Loading branch information...
commit 23730896ed04889abcd15f00ebde70e36223581e 1 parent 4361ce6
@creationix creationix authored
Showing with 14 additions and 0 deletions.
  1. +5 −0 .travis.yml
  2. +3 −0  package.json
  3. +6 −0 test-all.sh
View
5 .travis.yml
@@ -0,0 +1,5 @@
+language: node_js
+node_js:
+ - 0.8
+ - 0.6
+script: npm test
View
3  package.json
@@ -6,6 +6,9 @@
"repository": {
"url": ""
},
+ "scripts": {
+ "test": "./test-all.sh"
+ },
"main": "kernel.js",
"dependencies": {},
"devDependencies": {}
View
6 test-all.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+echo "Testing tokenizer..." && \
+node tests/testTokenizer.js && \
+echo "Testing withit..." && \
+node tests/testWithit.js && \
+echo 'All tests passed!'
Please sign in to comment.
Something went wrong with that request. Please try again.