Skip to content

Commit

Permalink
Add ember-cli-code-coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
CvX committed Apr 15, 2018
1 parent 783d0f2 commit 04a102c
Show file tree
Hide file tree
Showing 6 changed files with 3,515 additions and 594 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
/.sass-cache
/connect.lock
/coverage/*
/coverage_*
/local_uploads
/libpeerconnection.log
npm-debug.log
Expand Down
3 changes: 3 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"temp-directory": "coverage"
}
4 changes: 4 additions & 0 deletions config/coverage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
parallel: true,
reporters: ['json', 'lcov'],
};
3 changes: 3 additions & 0 deletions mirage/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import Response from 'ember-cli-mirage/response';

export default function() {
// Used by ember-cli-code-coverage
this.passthrough('/write-coverage');

this.namespace = '/api/v1';

this.get('/summary', function(schema) {
Expand Down
Loading

0 comments on commit 04a102c

Please sign in to comment.