Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dotnetCarpenter
Last active October 27, 2016 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dotnetCarpenter/8c5c843f1cd0d384d5310540396a394e to your computer and use it in GitHub Desktop.
Save dotnetCarpenter/8c5c843f1cd0d384d5310540396a394e to your computer and use it in GitHub Desktop.
npm test fails but if we run the indivudual tests or the commands in the tests, everything is ok.
C:\Users\korsoxx\jon\pipetree>npm test
> pipetree@0.1.0 test C:\Users\korsoxx\jon\pipetree
> tap spec/*.js --100
spec/httpsget.js ...................................... 1/1 8s
spec/integration.js ................................... 0/4 3s
downloadUrl should
not ok Error: Command failed: node integration/cat.js fixtures/releases.json | node integration/downloadUrl.js 'C:\Users\korsoxx\.node-spawn-wrap-11056-b87e533d7c69' is not recognized as an internal or external command, operable program or batch file.
at:
line: 211
column: 12
file: child_process.js
function: ChildProcess.exithandler
stack: |
ChildProcess.exithandler (child_process.js:211:12)
Pipe._handle.close [as _onclose] (net.js:501:12)
killed: false
code: 255
signal: null
cmd: >-
node integration/cat.js fixtures/releases.json | node
integration/downloadUrl.js
test: downloadUrl should
message: "Error: Command failed: node integration/cat.js fixtures/releases.json | node integration/downloadUrl.js\n'C:\\Users\\korsoxx\\.node-spawn-wrap-11056-b87e533d7c69' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
lastVersion should
not ok Error: Command failed: node integration/cat.js fixtures/latestversion.json | node integration/lastVersion.js 'C:\Users\korsoxx\.node-spawn-wrap-11056-b87e533d7c69' is not recognized as an internal or external command, operable program or batch file.
at:
line: 211
column: 12
file: child_process.js
function: ChildProcess.exithandler
stack: |
ChildProcess.exithandler (child_process.js:211:12)
killed: false
code: 255
signal: null
cmd: >-
node integration/cat.js fixtures/latestversion.json | node
integration/lastVersion.js
test: lastVersion should
message: "Error: Command failed: node integration/cat.js fixtures/latestversion.json | node integration/lastVersion.js\n'C:\\Users\\korsoxx\\.node-spawn-wrap-11056-b87e533d7c69' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
Download jasmine.zip 2.5.2
not ok Error: Command failed: node ../bin/httpsget https://api.github.com/repos/jasmine/jasmine/releases/4157608 | node integration/downloadUrl.js | node ../bin/httpsget 'C:\Users\korsoxx\.node-spawn-wrap-11056-b87e533d7c69' is not recognized as an internal or external command, operable program or batch file.
at:
line: 211
column: 12
file: child_process.js
function: ChildProcess.exithandler
stack: |
ChildProcess.exithandler (child_process.js:211:12)
killed: false
code: 255
signal: null
cmd: >-
node ../bin/httpsget
https://api.github.com/repos/jasmine/jasmine/releases/4157608 | node
integration/downloadUrl.js | node ../bin/httpsget
test: Download jasmine.zip 2.5.2
message: "Error: Command failed: node ../bin/httpsget https://api.github.com/repos/jasmine/jasmine/releases/4157608 | node integration/downloadUrl.js | node ../bin/httpsget\n'C:\\Users\\korsoxx\\.node-spawn-wrap-11056-b87e533d7c69' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
not ok TypeError: Cannot read property '0' of undefined
at:
line: 65
column: 29
file: spec/integration.js
function: Promise.all.then.result
stack: |
Promise.all.then.result (spec/integration.js:65:29)
process._tickCallback (internal/process/next_tick.js:103:7)
test: Download jasmine.zip 2.5.2
message: 'TypeError: Cannot read property ''0'' of undefined'
source: |
const actual = result[0][0]
spec/listen.js ........................................ 1/1 6s
spec/select.js ...................................... 11/11 6s
total ............................................... 13/17
13 passing (24s)
4 failing
ERROR: Coverage for lines (79.69%) does not meet global threshold (100%)
ERROR: Coverage for functions (67.86%) does not meet global threshold (100%)
ERROR: Coverage for branches (90.48%) does not meet global threshold (100%)
ERROR: Coverage for statements (82.93%) does not meet global threshold (100%)
--------------|----------|----------|----------|----------|----------------|
File | % Stmts | % Branch | % Funcs | % Lines |Uncovered Lines |
--------------|----------|----------|----------|----------|----------------|
All files | 82.93 | 90.48 | 67.86 | 79.69 | |
bin | 80 | 75 | 71.43 | 78.95 | |
httpsget.js | 80 | 75 | 71.43 | 78.95 | 24,25,26,46 |
lib | 83.87 | 92.11 | 66.67 | 80 | |
listen.js | 30 | 25 | 16.67 | 33.33 |... 28,37,46,47 |
root.js | 100 | 100 | 100 | 100 | |
select.js | 94.12 | 100 | 86.67 | 91.43 | 16,20,89 |
--------------|----------|----------|----------|----------|----------------|
npm ERR! Test failed. See above for more details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment