From f5b71ea9ed71192e34179995a9d032a665b10348 Mon Sep 17 00:00:00 2001 From: Jonathan Kemp Date: Thu, 24 Apr 2014 10:18:27 -0400 Subject: [PATCH] Various changes/fixes/updates. --- .gitignore | 1 - README.md | 4 ++++ index.js | 6 ++++-- package.json | 29 +++++++++++++++++++++++++++-- 4 files changed, 35 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 9daa824..3c3629e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -.DS_Store node_modules diff --git a/README.md b/README.md index f8efd32..7d3b435 100644 --- a/README.md +++ b/README.md @@ -15,3 +15,7 @@ List reporter to output list as test cases pass or fail: ```bash $ node index.js http://localhost/qunit/test/index.html --reporter=list ``` + +## License + +MIT © [Jonathan Kemp](http://jonkemp.com) \ No newline at end of file diff --git a/index.js b/index.js index ae38657..2cac922 100644 --- a/index.js +++ b/index.js @@ -1,13 +1,15 @@ +'use strict'; var path = require('path'); var childProcess = require('child_process'); var argv = require('minimist')(process.argv.slice(2)); var phantomjs = require('phantomjs'); var binPath = phantomjs.path; +var runner; if (!argv.reporter || argv.reporter === 'min') { - runner = 'runner.js'; + runner = 'lib/runner.js'; } else if (argv.reporter === 'list') { - runner = 'runner-list.js'; + runner = 'lib/runner-list.js'; } var childArgs = [ diff --git a/package.json b/package.json index c4155d6..46f54c4 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,34 @@ { - "name": "node-qunit", + "name": "node-qunit-phantomjs", "version": "0.1.0", - "description": "", + "description": "Run QUnit unit tests in a headless PhantomJS instance without using Grunt.", "dependencies": { "phantomjs": "^1.9.2-6", "minimist": "^0.0.8" + }, + "main": "index.js", + "scripts": { + "test": "mocha" + }, + "repository": { + "type": "git", + "url": "git://github.com/jonkemp/node-qunit-phantomjs.git" + }, + "keywords": [ + "qunit", + "phantomjs", + "test", + "testing" + ], + "author": "Jonathan Kemp (http://jonkemp.com/)", + "license": "MIT", + "bugs": { + "url": "https://github.com/jonkemp/node-qunit-phantomjs/issues" + }, + "homepage": "https://github.com/jonkemp/node-qunit-phantomjs", + "devDependencies": { + "gulp-mocha": "^0.4.1", + "gulp": "^3.6.1", + "gulp-jshint": "^1.5.4" } }