Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test failures on 10.3.3 with --cov on Windows #373

Closed
mykmelez opened this issue Jun 6, 2017 · 5 comments · Fixed by #394
Closed

test failures on 10.3.3 with --cov on Windows #373

mykmelez opened this issue Jun 6, 2017 · 5 comments · Fixed by #394

Comments

@mykmelez
Copy link
Contributor

mykmelez commented Jun 6, 2017

Upgrading mozilla/qbrt's tap dependency version from 10.3.2 to 10.3.3 causes its tests to fail with "Error: Cannot find module" when run with --cov on Windows:

$ node_modules/.bin/tap test/package-path.js --cov
module.js:471
    throw err;
    ^

Error: Cannot find module 'C:\Users\myk\.node-spawn-wrap-4664-85d6b0f6791b\node.EXE'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:390:7)
    at startup (bootstrap_node.js:150:9)
    at bootstrap_node.js:505:3
test/package-path.js .................................. 0/1
  not ok test/package-path.js
    timeout: 240000
    file: test/package-path.js
    command: 'c:\Program Files\nodejs\node.EXE'
    args:
      - test/package-path.js
    cwd: 'c:\Users\myk\Projects\qbrt'
    exitCode: 1

total ................................................. 0/1


  0 passing (133.489ms)
  1 failing

----------|----------|----------|----------|----------|----------------|
File      |  % Stmts | % Branch |  % Funcs |  % Lines |Uncovered Lines |
----------|----------|----------|----------|----------|----------------|
All files |  Unknown |  Unknown |  Unknown |  Unknown |                |
----------|----------|----------|----------|----------|----------------|

Running without --cov is unaffected, as is running with --cov on Linux/Mac. The problem only occurs when --cov is specified on Windows.

mykmelez added a commit to mykmelez/qbrt that referenced this issue Jun 6, 2017
tap 10.3.3 causes tests to fail on Windows because of <tapjs/tapjs#373>, so this change freezes tap at 10.3.2 until that issue is resolved.
mykmelez added a commit to mykmelez/qbrt that referenced this issue Jun 6, 2017
tap 10.3.3 causes tests to fail on Windows because of <tapjs/tapjs#373>, so this change freezes tap at 10.3.2 until that issue is resolved.
@morrisallison
Copy link

morrisallison commented Jul 6, 2017

This also occurs on Ubuntu and OS X. The failures start when nyc was bumped to v11. No failures with nyc v10.

@mykmelez
Copy link
Contributor Author

mykmelez commented Jul 6, 2017

@morrisallison Hmm, I don't see the same issue on Linux/macOS. Can you paste/link to the error message(s) you're getting on those platforms?

FWIW, I traced the Windows-specific failure to istanbuljs/spawn-wrap#56, and I've requested a pull for a fix in istanbuljs/spawn-wrap#57.

isaacs added a commit to istanbuljs/spawn-wrap that referenced this issue Jul 6, 2017
@morrisallison
Copy link

@mykmelez My mistake, the new nyc version broke babel-tap with very similar errors and steps to reproduce. Using tap with babel, without babel-tap works as expected.

mykmelez added a commit to mykmelez/node-tap that referenced this issue Jul 31, 2017
Update to the latest release of nyc to fix tapjs#373.
@mykmelez
Copy link
Contributor Author

This was fixed downstream in istanbuljs/nyc@8768afe. I've requested updating to the fixed version of nyc in #394.

bzoz added a commit to JaneaSystems/citgm that referenced this issue Feb 26, 2018
Both of those packages depend on older tap, which is broken on Windows
tapjs/tapjs#373. Skip those two packages
on Windows, until tap version is updated.
@al-k21
Copy link

al-k21 commented Feb 27, 2018

Hello, I guess this need to be reopened.

  • Semver module is using tap@v10.7.0, which seems to still be broken:
 Error: Cannot find module 'C:\Users\Administrator\.node-spawn-wrap-2268-b8f7c9a4ab2d\node.EXE'
     at Function.Module._resolveFilename (module.js:538:15)
     at Function.Module._load (module.js:468:25)
     at Function.Module.runMain (module.js:684:10)
     at startup (bootstrap_node.js:187:16)
     at bootstrap_node.js:608:3
 module.js:540
     throw err;
  • Sax module is using tap@v10.5.1, which is also broken:
'C:\Users\Administrator\.node-spawn-wrap-2036-57e6e875908f\node.EXE'
     at Function.Module._resolveFilename (module.js:538:15)
     at Function.Module._load (module.js:468:25)
     at Function.Module.runMain (module.js:684:10)
     at startup (bootstrap_node.js:187:16)
     at bootstrap_node.js:608:3
 module.js:540
     throw err;

/cc @mykmelez @isaacs

al-k21 pushed a commit to nodejs/citgm that referenced this issue Feb 27, 2018
Both of those packages depend on older tap, which is broken on Windows
tapjs/tapjs#373. Skip those two packages
on Windows, until tap version is updated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants