Skip to content

Commit

Permalink
Merge pull request #552 from wpreul/feature/complexity
Browse files Browse the repository at this point in the history
Run `make complexity` to generate complexity report
  • Loading branch information
Eran Hammer committed Feb 19, 2013
2 parents 2246111 + d0fa6e5 commit 29426c1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ config.json
*/*/._*
coverage.*
lib-cov

complexity.md
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ test-cov:
test-cov-html:
@NODE_ENV=test ./node_modules/.bin/mocha --require blanket --recursive --ignore-leaks --timeout 3000 -R html-cov > coverage.html

complexity:
./node_modules/.bin/cr -o complexity.md -f markdown lib

.PHONY: test test-cov test-cov-html
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"handlebars": "1.0.x",
"jade": "0.28.x",
"blanket": "1.0.x",
"travis-cov": "0.2.x"
"travis-cov": "0.2.x",
"complexity-report": "0.x.x"
},
"scripts": {
"test": "make test && make test-cov",
Expand Down

0 comments on commit 29426c1

Please sign in to comment.