Link to bug demonstration repository
https://github.com/elliot-nelson/nyc-bug-demo
Expected Behavior
Running nyc --cwd spec jasmine should instrument the specs run, and produce a coverage report:
1 spec, 0 failures
Finished in 0.023 seconds
Randomized with seed 40333 (jasmine --random=true --seed=40333)
---------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
---------------|---------|----------|---------|---------|-------------------
All files | 100 | 100 | 100 | 100 |
index-spec.js | 100 | 100 | 100 | 100 |
---------------|---------|----------|---------|---------|-------------------
Observed Behavior
Adding the --cwd option removes all instrumentation:
1 spec, 0 failures
Finished in 0.017 seconds
Randomized with seed 50629 (jasmine --random=true --seed=50629)
----------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
----------|---------|----------|---------|---------|-------------------
All files | 0 | 0 | 0 | 0 |
----------|---------|----------|---------|---------|-------------------
Troubleshooting steps
Environment Information
npx: installed 1 in 1.869s
System:
OS: Windows Server 2012 6.3.9600
CPU: (2) x64 Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz
Memory: 5.63 GB / 8.00 GB
Binaries:
Node: 8.15.0 - c:\nodejs\node.EXE
npm: 6.4.1 - c:\nodejs\npm.CMD
npmPackages:
nyc: ^15.0.1 => 15.0.1
Link to bug demonstration repository
https://github.com/elliot-nelson/nyc-bug-demo
Expected Behavior
Running
nyc --cwd spec jasmineshould instrument the specs run, and produce a coverage report:Observed Behavior
Adding the
--cwdoption removes all instrumentation:Troubleshooting steps
"spec_dir"setting inspec/support/jasmine.json- this didn't work (jasmine is running the right files, those files just aren't instrumented).Environment Information