Skip to content

Commit be9faff

Browse files
authored
Merge pull request #854 from dresende/coverage
Show & verify test coverage
2 parents 1512a4c + 24db55f commit be9faff

File tree

11 files changed

+1179
-52
lines changed

11 files changed

+1179
-52
lines changed

.gitignore

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
*.sublime-*
22
*.njsproj
33
*.nodevsdbg
4+
*~
45
.DS_Store
6+
.idea
7+
.nyc_output
58
node_modules
6-
test/config.js
7-
test/coverage.html
8-
lib-cov/
9-
*~
109
npm-debug.log
11-
.idea
10+
test/config.js

.mocharc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"reporter": "spec",
3+
"timeout": 15000,
4+
"exit": true
5+
}

.npmignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
*.sublime-*
22
*.njsproj
33
*.nodevsdbg
4+
*~
45
.DS_Store
56
.github
7+
.idea
8+
.nyc_output
69
node_modules
710
test*
8-
lib-cov/
9-
*~
10-
.idea

Makefile

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,8 @@
11
test:
2-
ORM_PROTOCOL=mysql node test/run
2+
ORM_PROTOCOL=mysql node test/run
33
ORM_PROTOCOL=postgres node test/run
44
ORM_PROTOCOL=redshift node test/run
5-
ORM_PROTOCOL=sqlite node test/run
6-
ORM_PROTOCOL=mongodb node test/run
7-
8-
coverage: cov
9-
10-
cov:
11-
rm -rf lib-cov
12-
jscoverage lib lib-cov
13-
mv package.json test/support/
14-
cp test/support/coverage-package.json package.json
15-
ORM_PROTOCOL=mysql mocha -R html-cov test/integration/ > test/coverage.html
16-
mv test/support/package.json .
5+
ORM_PROTOCOL=sqlite node test/run
6+
ORM_PROTOCOL=mongodb node test/run
177

188
.PHONY: test

0 commit comments

Comments
 (0)