Skip to content

Commit c0bdaa3

Browse files
committed
build: test coverage with istanbul
1 parent cfb8d2a commit c0bdaa3

File tree

4 files changed

+8
-65
lines changed

4 files changed

+8
-65
lines changed

.gitignore

Lines changed: 2 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,3 @@
1-
# Compiled source #
2-
###################
3-
*.com
4-
*.class
5-
*.dll
6-
*.exe
7-
*.o
8-
*.so
9-
10-
# Packages #
11-
############
12-
# it's better to unpack these files and commit the raw source
13-
# git has its own built in compression methods
14-
*.7z
15-
*.dmg
16-
*.gz
17-
*.iso
18-
*.jar
19-
*.rar
20-
*.tar
21-
*.zip
22-
23-
# Logs and databases #
24-
######################
25-
*.log
26-
*.sql
27-
*.sqlite
28-
29-
# OS generated files #
30-
######################
31-
.DS_Store*
32-
ehthumbs.db
33-
Thumbs.db
34-
35-
# Node.js #
36-
###########
37-
lib-cov
38-
*.seed
39-
*.log
40-
*.csv
41-
*.dat
42-
*.out
43-
*.pid
44-
*.gz
45-
46-
pids
47-
logs
48-
results
49-
50-
node_modules
1+
coverage/
2+
node_modules/
513
npm-debug.log
52-
53-
# Git #
54-
#######
55-
*.orig
56-
*.BASE.*
57-
*.BACKUP.*
58-
*.LOCAL.*
59-
*.REMOTE.*
60-
61-
# Components #
62-
##############
63-
64-
/build
65-
/components

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
coverage/
12
test/
23
.travis.yml

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ matrix:
77
allow_failures:
88
- node_js: "0.11"
99
fast_finish: true
10+
script: "npm run-script test-travis"

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"send": "0.4.0"
1717
},
1818
"devDependencies": {
19+
"istanbul": "0.2.10",
1920
"mocha": "~1.20.0",
2021
"should": "~4.0.0",
2122
"supertest": "~0.13.0"
@@ -24,6 +25,8 @@
2425
"node": ">= 0.8.0"
2526
},
2627
"scripts": {
27-
"test": "mocha --reporter spec --require should"
28+
"test": "mocha --reporter dot --require should test/",
29+
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --require should test/",
30+
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --require should test/"
2831
}
2932
}

0 commit comments

Comments
 (0)