Skip to content

Commit

Permalink
Adds Istanbul test coverage instrumentation
Browse files Browse the repository at this point in the history
- Generates coverage report during `make test`

Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
  • Loading branch information
chrissrogers committed Apr 6, 2018
1 parent c7633a3 commit 959b943
Show file tree
Hide file tree
Showing 5 changed files with 1,883 additions and 38 deletions.
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
.DS_Store
.sauce

node_modules
npm-debug.log

build
node_modules

npm-debug.log
test/server/pid.txt
10 changes: 5 additions & 5 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var staticConfig = {
'build/test.js'
],
proxies: { '/api': 'http://localhost:9877' },
reporters: ['mocha'],
reporters: ['mocha', 'coverage'],
port: 9876,
colors: true,
autoWatch: true,
Expand All @@ -22,10 +22,6 @@ var staticConfig = {
browserNoActivityTimeout: 800000,
captureTimeout: 800000,
customLaunchers: {
PhantomJSDebug: {
base: 'PhantomJS',
debug: true
},
ChromeDebug: {
base: 'Chrome',
flags: ['--auto-open-devtools-for-tabs']
Expand All @@ -37,6 +33,10 @@ var staticConfig = {
timeout : 800000, // 800 seconds
grep: ''
}
},
coverageReporter: {
type : 'html',
dir : 'build/reports/coverage/'
}
};

Expand Down
Loading

0 comments on commit 959b943

Please sign in to comment.