enable collectCoverage and codecov

This commit is contained in:
Pooya Parsa 2018-03-19 19:19:16 +03:30
parent 25a587544c
commit 34c1cad8cc
2 changed files with 6 additions and 5 deletions

View File

@ -62,7 +62,7 @@ jobs:
at: ~/project at: ~/project
- run: - run:
name: Test name: Test
command: yarn test:unit command: yarn test:unit && yarn coverage
environment: environment:
- NODE_ENV: "test" - NODE_ENV: "test"
@ -73,7 +73,7 @@ jobs:
at: ~/project at: ~/project
- run: - run:
name: Test (e2e) name: Test (e2e)
command: yarn test:e2e command: yarn test:e2e && yarn coverage
environment: environment:
- NODE_ENV: "test" - NODE_ENV: "test"

View File

@ -1,5 +1,6 @@
module.exports = { module.exports = {
'testEnvironment': 'node', testEnvironment: 'node',
'coverageDirectory': './coverage/', coverageDirectory: './coverage/',
'setupTestFrameworkScriptFile': './test/utils/setup' collectCoverage: true,
setupTestFrameworkScriptFile: './test/utils/setup'
} }