-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test coverage and Coveralls first kick
- Loading branch information
Adam Kliment
committed
Sep 2, 2013
1 parent
51109d2
commit 30a5041
Showing
5 changed files
with
45 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,6 @@ notifications: | |
- adam@apiary.io | ||
on_success: change | ||
on_failure: always | ||
after_success: | ||
- ./scripts/coveralls | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
# Usage: | ||
# ./scripts/cov [reporter] | ||
# | ||
# Example: | ||
# ./scripts/cov html-cov > cov.html | ||
|
||
COV=./node_modules/coffee-coverage/bin/coffeecoverage | ||
MOCHA=./node_modules/mocha/bin/mocha | ||
|
||
REPORTER=$1 | ||
echo "Using Mocha reporter: $REPORTER" 1>&2 | ||
$COV --exclude node_modules,.git --path relative . ./src-cov 1>&2 | ||
|
||
find ./src-cov/test/unit | grep "\-test" | xargs $MOCHA --require ./src-cov/src/gavel.js --reporter $REPORTER --compilers 'coffee:coffee-script' | ||
|
||
rm -rf ./src-cov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
./scripts/cov mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js |