Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ lib-js/%.js : lib/%.coffee

test-cov:
rm -rf lib-js lib-js-cov
coffee -c -o lib-js lib
jscoverage lib-js lib-js-cov
NODE_ENV=test TEST_COV_SAML2=1 node_modules/mocha/bin/mocha -R html-cov --ignore-leaks --compilers coffee:coffee-script/register test/*.coffee | tee coverage.html
open coverage.html
node_modules/.bin/coffee -c -o lib-js lib
node_modules/.bin/jscoverage lib-js lib-js-cov
NODE_ENV=test TEST_COV_SAML2=1 node_modules/mocha/bin/mocha --ignore-leaks --require coffee-script/register test/*.coffee
open coverage/index.html

test: build
NODE_ENV=test node_modules/mocha/bin/mocha --ignore-leaks --timeout 60000 -R spec --compilers coffee:coffee-script/register test/*.coffee
NODE_ENV=test node_modules/mocha/bin/mocha --ignore-leaks --timeout 60000 -R spec --require coffee-script/register test/*.coffee

clean:
rm -rf lib-js lib-js-cov
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
},
"scripts": {
"test": "make -Br test",
"test-cov": "make -Br test-cov",
"prepublish": "make build"
"test-cov": "make -Br test-cov"
},
"repository": {
"type": "git",
Expand All @@ -24,8 +23,9 @@
"url": "https://github.com/Clever/saml2/issues"
},
"devDependencies": {
"mocha": "^3.5.0",
"coffee-script": "^1.12.0"
"coffee-script": "^1.12.0",
"jscoverage": "^0.6.0",
"mocha": "^8.2.0"
},
"dependencies": {
"async": "^2.5.0",
Expand Down