Skip to content

Commit

Permalink
feat(istanbul): First inclusion of Istanbul Coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo Rodrigues authored and Leo Rodrigues committed Dec 9, 2016
1 parent f2557d5 commit bf58841
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
coverage
45 changes: 45 additions & 0 deletions npm-debug.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'commit' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'precommit', 'commit', 'postcommit' ]
5 info lifecycle [email protected]~precommit: [email protected]
6 silly lifecycle [email protected]~precommit: no script for precommit, continuing
7 info lifecycle [email protected]~commit: [email protected]
8 verbose lifecycle [email protected]~commit: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]~commit: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/rarolabs/starwars-name/node_modules/.bin:/usr/local/mysql/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/rarolabs/.rvm/bin
10 verbose lifecycle [email protected]~commit: CWD: /Users/rarolabs/starwars-name
11 silly lifecycle [email protected]~commit: Args: [ '-c', 'git-cz' ]
12 silly lifecycle [email protected]~commit: Returned: code: 1 signal: null
13 info lifecycle [email protected]~commit: Failed to exec commit script
14 verbose stack Error: [email protected] commit: `git-cz`
14 verbose stack Exit status 1
14 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
14 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:877:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid [email protected]
16 verbose cwd /Users/rarolabs/starwars-name
17 error Darwin 15.6.0
18 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "commit"
19 error node v6.9.1
20 error npm v3.10.8
21 error code ELIFECYCLE
22 error [email protected] commit: `git-cz`
22 error Exit status 1
23 error Failed at the [email protected] commit script 'git-cz'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the lrodlima-starwars-names package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error git-cz
23 error You can get information on how to open an issue for this project with:
23 error npm bugs lrodlima-starwars-names
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls lrodlima-starwars-names
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"commit": "git-cz",
"test": "mocha src/index.test.js -w",
"test:single": "mocha src/index.test.js",
"test:single": "istanbul cover -x *.test.js _mocha -- -R spec src/index.test.js",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"repository": {
Expand All @@ -32,6 +32,7 @@
"commitizen": "2.8.6",
"cz-conventional-changelog": "1.2.0",
"ghooks": "1.3.2",
"istanbul": "0.4.5",
"mocha": "3.2.0",
"semantic-release": "^6.3.2"
},
Expand Down
1 change: 1 addition & 0 deletions src/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ describe('starwars-names', function() {
it('should return an array of random item if passed a number',
function() {
var randomItems = starWars.random(3);
expect(randomItems).to.have.length(3);
randomItems.forEach(function(item) {
expect(starWars.all).to.include(item);
});
Expand Down

0 comments on commit bf58841

Please sign in to comment.