Skip to content

Commit

Permalink
Migrate to lab
Browse files Browse the repository at this point in the history
  • Loading branch information
Eran Hammer committed Mar 18, 2013
1 parent b813729 commit 2949ca4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 20 deletions.
17 changes: 8 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
REPORTER = dot

test:
@NODE_ENV=test ./node_modules/.bin/mocha --recursive --reporter $(REPORTER) --ignore-leaks --timeout 3000

test-cov:
@NODE_ENV=test ./node_modules/.bin/mocha --require blanket --recursive --ignore-leaks --timeout 3000 -R travis-cov

@./node_modules/.bin/lab
test-cov:
@./node_modules/.bin/lab -r threshold -t 100
test-cov-html:
@NODE_ENV=test ./node_modules/.bin/mocha --require blanket --recursive --ignore-leaks --timeout 3000 -R html-cov > coverage.html
@./node_modules/.bin/lab -r html -o coverage.html
complexity:
@./node_modules/.bin/cr -o complexity.md -f markdown lib

.PHONY: test test-cov test-cov-html complexity

.PHONY: test test-cov test-cov-html
14 changes: 5 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "iron",
"description": "Encapsulated tokens (encrypted and mac'ed objects)",
"version": "0.2.2",
"version": "0.2.3",
"author": "Eran Hammer <[email protected]> (http://hueniverse.com)",
"contributors": [],
"repository": "git://github.com/hueniverse/iron",
Expand All @@ -15,20 +15,16 @@
"node": ">=0.8.0"
},
"dependencies": {
"hoek": "0.6.x",
"hoek": "0.7.x",
"boom": "0.3.x",
"cryptiles": "0.1.x"
},
"devDependencies": {
"mocha": "1.x.x",
"chai": "1.x.x",
"blanket": "1.0.x",
"travis-cov": "0.2.x"
"lab": "0.0.x",
"complexity-report": "0.x.x"
},
"scripts": {
"test": "make test && make test-cov",
"blanket": { "pattern": "//^((?!\/node_modules\/)(?!\/test\/).)*$/ig", "onlyCwd": true, "data-cover-flags": { "branchTracking": true } },
"travis-cov": { "threshold": 100 }
"test": "make test-cov"
},
"licenses": [
{
Expand Down
8 changes: 6 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Load modules

var Crypto = require('crypto');
var Chai = require('chai');
var Lab = require('lab');
var Hoek = require('hoek');
var Iron = require('../lib');
var Cryptiles = require('cryptiles');
Expand All @@ -14,7 +14,11 @@ var internals = {};

// Test shortcuts

var expect = Chai.expect;
var expect = Lab.expect;
var before = Lab.before;
var after = Lab.after;
var describe = Lab.experiment;
var it = Lab.test;


describe('Iron', function () {
Expand Down

0 comments on commit 2949ca4

Please sign in to comment.