Skip to content

Commit

Permalink
Tests: tape & nyc instead mocha & istanbul
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid committed Apr 26, 2016
1 parent 8548a51 commit 0a11c3e
Show file tree
Hide file tree
Showing 15 changed files with 1,369 additions and 987 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
.nyc_output
coverage
build
node_modules
Expand Down
16 changes: 10 additions & 6 deletions karma.conf.js
@@ -1,22 +1,26 @@
module.exports = function (config) {
config.set({
browserNoActivityTimeout: 120000,
frameworks: ['browserify', 'detectBrowsers', 'mocha'],
files: [
'test/index.js'
],
preprocessors: {
'test/index.js': ['browserify', 'env']
},
singleRun: true,
frameworks: [
'browserify',
'detectBrowsers',
'tap'
],
plugins: [
'karma-browserify',
'karma-chrome-launcher',
'karma-env-preprocessor',
'karma-firefox-launcher',
'karma-detect-browsers',
'karma-mocha'
'karma-tap'
],
preprocessors: {
'test/index.js': ['browserify', 'env']
},
singleRun: true,
browserify: {
debug: true
},
Expand Down
39 changes: 21 additions & 18 deletions package.json
Expand Up @@ -37,37 +37,40 @@
},
"scripts": {
"clean": "node-gyp clean",
"coverage": "RANDOM_TESTS_REPEAT=1 nyc tape test/index.js",
"coverage-lcov": "npm run coverage && nyc report -r lcov",
"install": "npm run rebuild",
"lint": "standard",
"rebuild": "node-gyp rebuild",
"test": "npm run test:node && npm run test:browser",
"test:browser": "karma start karma.conf.js",
"test:node": "istanbul test node_modules/mocha/bin/_mocha -- --reporter spec test/index.js"
"test": "npm run unit",
"unit": "npm run unit:node && npm run unit:browser",
"unit:browser": "karma start karma.conf.js",
"unit:node": "tape test/index.js |faucet"
},
"dependencies": {
"bindings": "^1.2.1",
"bip66": "^1.1.3",
"bn.js": "^4.10.0",
"drbg.js": "^1.0.0",
"bn.js": "^4.11.3",
"drbg.js": "^1.0.1",
"elliptic": "^6.2.3",
"nan": "^2.2.0"
"nan": "^2.2.1"
},
"devDependencies": {
"bignum": "^0.11.0",
"chai": "^3.4.0",
"istanbul": "^0.4.0",
"karma": "^0.13.14",
"karma-browserify": "^4.4.0",
"karma-chrome-launcher": "^0.2.1",
"karma-detect-browsers": "^2.0.2",
"browserify": "^13.0.0",
"faucet": "0.0.1",
"karma": "^0.13.22",
"karma-browserify": "^5.0.4",
"karma-chrome-launcher": "^0.2.3",
"karma-detect-browsers": "^2.1.0",
"karma-env-preprocessor": "^0.1.1",
"karma-firefox-launcher": "^0.1.6",
"karma-mocha": "^0.2.0",
"mocha": "^2.3.3",
"node-gyp": "^3.0.3",
"progress": "^1.1.8",
"standard": "^5.3.1",
"xorshift.js": "^1.0.1"
"karma-tap": "^1.0.4",
"node-gyp": "^3.3.1",
"nyc": "^6.4.0",
"standard": "^6.0.8",
"tape": "^4.5.1",
"xorshift.js": "^1.0.3"
},
"engines": {
"node": ">=0.10"
Expand Down

0 comments on commit 0a11c3e

Please sign in to comment.