Skip to content

Commit 2138e74

Browse files
author
Rajasegar
committed
[CHORE] Adding new command for test coverage
1. Adding new command test:coverage to package.json instead of tweaking the default test command 2. Modify travis.yml to use the new command
1 parent 953b8ea commit 2138e74

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

commands/global/new.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ module.exports.handler = function handler(options) {
6565
name: projectName,
6666
version: '0.1.0',
6767
scripts: {
68-
test: 'codemod-cli test --coverage',
68+
test: 'codemod-cli test',
69+
'test:coverage': 'codemod-cli test --coverage',
6970
'update-docs': 'codemod-cli update-docs',
7071
coveralls: 'cat ./coverage/lcov.info | node node_modules/.bin/coveralls',
7172
},
@@ -108,7 +109,7 @@ module.exports.handler = function handler(options) {
108109
- yarn install
109110
110111
script:
111-
- yarn test
112+
- yarn test:coverage
112113
113114
after_success:
114115
- yarn coveralls

0 commit comments

Comments
 (0)