diff --git a/.gitignore b/.gitignore index 1e3b95d4e..8ca6ad58b 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ stamp-build gmon.out v8.log .DS_Store +package-lock.json \ No newline at end of file diff --git a/README.md b/README.md index ff9f28e49..04fa76215 100644 --- a/README.md +++ b/README.md @@ -7,18 +7,7 @@ Simple syntax, powerful tools. Nodeunit provides easy async unit testing for node.js and the browser. -DEPRECATED PROJECT ------ - -The project is very stale. We've kept it working on new versions of node, and sometimes merged small PRs that help teams relying on nodeunit. - -Nodeunit was the arguably first testing framework developed for node. It was very useful at the time, but there's an overwhelming number -of other worthwhile testing solutions out there that are actively maintained. tap, ava, tape, mocha, jasmine, jest, ... the list goes on and on. - -If Nodeunit were truly bringing some different philosophy to the testing scene I'd say yes effort should be made to shore up it's development, -but given how many other great options there are out there, a benefit of letting it atrophy is it's one less choice people have to make when -choosing a testing solution. *You are strongly encouraged to check out other more modern testing options.* - +Nodeunit was the arguably first testing framework developed for node. Features -------- @@ -34,6 +23,7 @@ Features Contributors ------------ +* [caolan](https://github.com/caolan) * [alexgorbatchev](https://github.com/alexgorbatchev) * [alexkwolfe](https://github.com/alexkwolfe) * [azatoth](https://github.com/azatoth) @@ -367,8 +357,6 @@ Built-in Test Reporters * __default__ - The standard reporter seen in the nodeunit screenshots * __minimal__ - Pretty, minimal output, shows errors and progress only * __html__ - Outputs a HTML report to stdout -* __junit__ - Creates jUnit compatible XML reports, which can be used with - continuous integration tools such as [Hudson](http://hudson-ci.org/). * __machineout__ - Simple reporter for machine analysis. There is [nodeunit.vim](https://github.com/lambdalisue/nodeunit.vim) which is useful for TDD on VIM. diff --git a/lib/reporters/index.js b/lib/reporters/index.js index 10eff3c49..c7a74db12 100644 --- a/lib/reporters/index.js +++ b/lib/reporters/index.js @@ -1,14 +1,3 @@ -// This is a hack to make browserify skip tap -var tap; -try { - tap = require('./' + 'tap'); -} catch (ex) { - tap = { - run: function() { - throw new Error('Sorry, tap reporter not available'); - } - }; -} module.exports = { 'junit': require('./junit'), @@ -18,7 +7,7 @@ module.exports = { 'html': require('./html'), 'eclipse': require('./eclipse'), 'machineout': require('./machineout'), - 'tap': tap, + // 'tap': require('./tap'), 'nested': require('./nested'), 'verbose' : require('./verbose'), 'lcov' : require('./lcov') diff --git a/lib/reporters/junit.js b/lib/reporters/junit.js index 079653342..a33ef3771 100644 --- a/lib/reporters/junit.js +++ b/lib/reporters/junit.js @@ -15,7 +15,8 @@ var nodeunit = require('../nodeunit'), async = require('../../deps/async'), AssertionError = require('../assert').AssertionError, child_process = require('child_process'), - ejs = require('ejs'); + // ejs = require('ejs'); + ejs = require('template-literal'); /** diff --git a/package.json b/package.json index 33bd025be..21c00b0da 100644 --- a/package.json +++ b/package.json @@ -1,14 +1,18 @@ { "name": "nodeunit", - "version": "0.11.3", + "version": "1.0.0", "description": "Easy unit testing for node.js and the browser.", "maintainers": [ { - "name": "Caolan McMahon", - "web": "https://github.com/caolan" + "name": "Chris Johnson", + "web": "https://github.com/chrisjohn404" } ], "contributors": [ + { + "name": "Caolan McMahon", + "web": "https://github.com/caolan" + }, { "name": "Romain Beauxis", "web": "https://github.com/toots" @@ -60,14 +64,14 @@ ], "repository": { "type": "git", - "url": "http://github.com/caolan/nodeunit.git" + "url": "http://github.com/chrisjohn404/nodeunit.git" }, "devDependencies": { "should": ">=11.1.0", "uglify-js": ">=2.7.3" }, "bugs": { - "url": "http://github.com/caolan/nodeunit/issues" + "url": "http://github.com/chrisjohn404/nodeunit/issues" }, "license": "MIT", "directories": { @@ -78,11 +82,14 @@ "bin": { "nodeunit": "./bin/nodeunit" }, - "dependencies": { + "depDependencies": { "ejs": "^2.5.2", - "tap": "^12.0.1" + "tap": "^16.0.1" }, "scripts": { "test": "node ./bin/nodeunit" + }, + "dependencies": { + "template-literal": "^1.0.4" } }