Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: istanbuljs/nyc
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: aa9ab4fb3026abafb1a2bafd3c33bdb7f0dab800
Choose a base ref
...
head repository: istanbuljs/nyc
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: bebf4d68c6a2cb0c5fd66ba3513a8e68ad5a284f
Choose a head ref
Loading
Showing with 13,437 additions and 3,450 deletions.
  1. +0 −3 .babelrc
  2. +27 −0 .github/ISSUE_TEMPLATE.md
  3. +8 −0 .github/stale.yml
  4. +2 −1 .gitignore
  5. +8 −0 .taprc
  6. +21 −12 .travis.yml
  7. +566 −1 CHANGELOG.md
  8. +0 −19 ISSUE_TEMPLATE
  9. +262 −250 README.md
  10. +0 −24 appveyor.yml
  11. +95 −77 bin/nyc.js
  12. +3 −21 bin/wrap.js
  13. +42 −18 build-self-coverage.js
  14. +0 −56 build-tests.js
  15. +43 −0 docs/instrument.md
  16. +37 −0 docs/setup-codecov.md
  17. +34 −0 docs/setup-coveralls.md
  18. +422 −433 index.js
  19. +28 −0 lib/commands/check-coverage.js
  20. +74 −0 lib/commands/helpers.js
  21. +54 −46 lib/commands/instrument.js
  22. +46 −0 lib/commands/merge.js
  23. +30 −0 lib/commands/report.js
  24. +45 −186 lib/config-util.js
  25. +51 −0 lib/fs-promises.js
  26. +30 −0 lib/hash.js
  27. +34 −9 lib/instrumenters/istanbul.js
  28. +7 −6 lib/instrumenters/noop.js
  29. +7 −4 lib/process-args.js
  30. +0 −99 lib/process.js
  31. +27 −0 lib/register-env.js
  32. +0 −20 lib/self-coverage-helper.js
  33. +84 −0 lib/source-maps.js
  34. +28 −0 lib/wrap.js
  35. +19 −0 npm-run-clean.js
  36. +22 −0 nyc.config.js
  37. +7,214 −0 package-lock.json
  38. +49 −101 package.json
  39. +31 −0 self-coverage-helper.js
  40. +20 −0 tap-snapshots/test-config-override.js-TAP.test.js
  41. +16 −0 tap-snapshots/test-eager.js-TAP.test.js
  42. +17 −0 tap-snapshots/test-instrument.js-TAP.test.js
  43. +980 −0 tap-snapshots/test-nyc-integration.js-TAP.test.js
  44. +26 −0 tap-snapshots/test-tsc.js-TAP.test.js
  45. +127 −0 test/add-all-files.js
  46. +35 −0 test/cache.js
  47. +15 −0 test/config-override.js
  48. +85 −0 test/config.js
  49. +39 −0 test/cwd.js
  50. +30 −0 test/eager.js
  51. +0 −71 test/fixtures/_generateReport.js
  52. +2 −2 test/fixtures/cache-collision-runner.js
  53. +6 −0 test/fixtures/cli/.instrument-nycrc
  54. +8 −0 test/fixtures/cli/by-arg2.js
  55. +15 −0 test/fixtures/cli/classes.js
  56. +2 −0 test/fixtures/cli/conf-override-module.js
  57. +24 −0 test/fixtures/cli/conf-override-root.js
  58. 0 test/fixtures/cli/empty.js
  59. +1 −1 test/fixtures/cli/external-instrumenter.js
  60. +1 −1 test/fixtures/cli/half-covered-failing.js
  61. +5 −0 test/fixtures/cli/instrument-inplace/file1.js
  62. +5 −0 test/fixtures/cli/instrument-inplace/file2.js
  63. +1 −0 test/fixtures/cli/instrument-inplace/package.json
  64. +200 −0 test/fixtures/cli/merge-input/a.json
  65. +200 −0 test/fixtures/cli/merge-input/b.json
  66. +9 −0 test/fixtures/cli/no-transform/half-covered.xjs
  67. +5 −0 test/fixtures/cli/not-strict.js
  68. +1 −0 test/fixtures/cli/nyc-config-js/ignore.js
  69. +11 −0 test/fixtures/cli/nyc-config-js/index.js
  70. +3 −0 test/fixtures/cli/nyc-config-js/nyc.config.js
  71. +9 −0 test/fixtures/cli/nyc-config-js/nycrc-config.js
  72. +5 −0 test/fixtures/cli/nyc-config-js/package.json
  73. +9 −0 test/fixtures/cli/nycrc/.nycrc-config.json
  74. +2 −0 test/fixtures/cli/nycrc/.nycrc.yaml
  75. +2 −0 test/fixtures/cli/nycrc/.nycrc.yml
  76. +2 −0 test/fixtures/cli/selfspawn-fibonacci.js
  77. +2 −0 test/fixtures/cli/skip-full.js
  78. +1 −0 test/fixtures/cli/subdir/.gitignore
  79. +1 −0 test/fixtures/cli/subdir/input-dir/bad.js
  80. +2 −0 test/fixtures/cli/subdir/input-dir/exclude-me/index.js
  81. +2 −0 test/fixtures/cli/subdir/input-dir/include-me/exclude-me.js
  82. +2 −0 test/fixtures/cli/subdir/input-dir/include-me/include-me.js
  83. +2 −0 test/fixtures/cli/subdir/input-dir/node_modules/index.js
  84. +4 −0 test/fixtures/conf-multiple-extensions/run.js
  85. +5 −0 test/fixtures/eager.js
  86. +2 −0 test/fixtures/exclude-node-modules/.gitignore
  87. 0 test/fixtures/exclude-node-modules/bin/do-nothing.js
  88. +1 −0 test/fixtures/exclude-node-modules/node_modules/@istanbuljs/fake-module-1/index.js
  89. +1 −0 test/fixtures/exclude-node-modules/node_modules/@istanbuljs/fake-module-2/index.js
  90. +1 −0 test/fixtures/exclude-node-modules/package.json
  91. +9 −0 test/fixtures/hooks/run-in-context.js
  92. +14 −0 test/fixtures/identical-file-runner.js
  93. +5 −0 test/fixtures/identical-file1.js
  94. +5 −0 test/fixtures/identical-file2.js
  95. +4 −0 test/fixtures/nyc.config.js
  96. +2 −2 test/fixtures/package.json
  97. +3 −0 test/fixtures/parser-plugins/no-plugins.json
  98. +7 −0 test/fixtures/parser-plugins/package.json
  99. +2 −0 test/fixtures/parser-plugins/v8.js
  100. +5 −0 test/fixtures/recursive-run/package.json
  101. +0 −793 test/fixtures/report.js
  102. +2 −0 test/fixtures/source-maps/instrumented/s1.min.js
  103. +1 −0 test/fixtures/source-maps/instrumented/s1.min.js.map
  104. +2 −0 test/fixtures/source-maps/instrumented/s2.min.js
  105. +9 −0 test/fixtures/source-maps/original/s1.js
  106. +6 −0 test/fixtures/source-maps/original/s2.js
  107. +1 −0 test/fixtures/source-maps/package.json
  108. +16 −0 test/fixtures/stack-trace.js
  109. +4 −0 test/fixtures/transpile-hook.js
  110. +1 −0 test/fixtures/tsc/.npmrc
  111. +16 −0 test/fixtures/tsc/mapping.js
  112. +1 −0 test/fixtures/tsc/mapping.js.map
  113. +8 −0 test/fixtures/tsc/mapping.ts
  114. +15 −0 test/fixtures/tsc/package.json
  115. +8 −0 test/fixtures/tsc/tsconfig.json
  116. +29 −0 test/helpers/env-check-config.js
  117. +16 −0 test/helpers/index.js
  118. +11 −0 test/helpers/parse-argv.js
  119. +8 −0 test/helpers/paths.js
  120. +32 −0 test/helpers/reset-state.js
  121. +49 −0 test/helpers/run-nyc.js
  122. +3 −0 test/helpers/source-map-support.js
  123. +25 −0 test/helpers/spawn.js
  124. +31 −0 test/helpers/temp-dir-setup.js
  125. +16 −0 test/helpers/test-failure.js
  126. +16 −0 test/helpers/test-success.js
  127. +355 −0 test/instrument.js
  128. +58 −0 test/issue-190.js
  129. +668 −0 test/nyc-integration.js
  130. +29 −0 test/parser-plugins.js
  131. +79 −0 test/process-args.js
  132. +86 −0 test/processinfo.js
  133. +52 −0 test/report.js
  134. +76 −0 test/should-instrument.js
  135. +37 −0 test/source-map-support.js
  136. +0 −673 test/src/nyc-bin.js
  137. +0 −441 test/src/nyc-test.js
  138. +0 −80 test/src/process-args.js
  139. +81 −0 test/temp-dir.js
  140. +28 −0 test/tsc.js
  141. +112 −0 test/wrap.js
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!--Please use the template provided below when reporting bugs:-->
## Link to bug demonstration repository
<!--
A demo repository will show the combination of module versions being used,
command-lines and configurations. NYC is very complex, it is difficult or
even impossible to triage most bugs without this information.
If you cannot share a link to your repository (maybe it's private) then you must
create a basic `nyc-bug-demo` repository and link to that please [mandatory].
-->

## Expected Behavior

## Observed Behavior

### Troubleshooting steps
- [ ] still occurring when I put `cache: false` in my nyc config

## Environment Information
<!--
[mandatory] run the following script:
npx envinfo@latest --preset nyc
-->
```
# paste the output here
```
8 changes: 8 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
daysUntilStale: 365

exemptLabels:
- "Great First Contribution"
- pinned
- security

staleLabel: stale
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -3,5 +3,6 @@ coverage
node_modules
test/build/
.self_coverage
*.covered.js
self-coverage/
*.swp
needs-transpile.js
8 changes: 8 additions & 0 deletions .taprc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"test-ignore": "^test/(helpers|src)/",
"coverage": false,
"jobs": 1,
"timeout": 360,
"bail": false,
"esm": false
}
33 changes: 21 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
sudo: false
language: node_js
os:
- windows
- linux
- osx
node_js:
- 4
- 5
- "0.10"
- "0.12"
- "stable"

before_install:
- "npm config set progress=false"

env:
secure: "SVg7NpV0Sru296kdp+eFl07RFjtJy242fWQ1KDCUdk/1EtZEOzBoSKP7Tn3zX/VLBieexL0T31EwYvRztnL97Sr8VgpYU0z95vCPO8FrixElJR6NH3dqrKeNzC3xOYdV0fy2b4UMlPJOI0aYDT1KHm1aWtkb2J8zqII+XbMtlDaelfHCDxa2+RBII9nYYDP62z+0chQFS6MGPSNwve3G2emYHZpYP5iTFmOzaFUCAjLskKvnnsY0jyx5XssqAo17747WKZl5SDgN8YHZIwhE5tB9m9j3MGjJhwdsR3kmq2om0GD1tQFFAXzWhWad3zNBUE4fLqswgASi39o5NIEzvSRzpw77ttOkkIFGem0l421Zi25W8x5n6GZvP06Y47ddmjNBlniwIzG4fb3dbIByCy/g5SjUYmfnke7stXXBKsPv0eEadlLGFWnG5RIfnyGjvUgQ//QXSAnBBzYF9IK+KUdU8c9kHF6kPybsGEzjQoX+4EJL6kZ4sNX9qxjHERUr4Jb6rAMOnKI9VtCBNqwcCC3nV5DDWHS86hKwbuTbBFkszP7majOi0kUQJTO/tZGwVVcphSDwhL5QkmMepLOqXyRICdUcB2ffXHYhZLiZPofYdom8csaDolqFkotJEBj3GM3gwHvUC3i1vxshxtjF6NHjanhpiIpHLRCs6R1RESE="
- "node"
- 10
- 8
matrix:
## An ENOMEM error occurs with 10+ under Travis-CI for Windows.
## Disable until we can determine the cause.
# include:
# - os: windows
# node_js: "latest"
exclude:
- os: windows
node_js: "node"
- os: windows
node_js: 10
git:
depth:
1

after_script:
- "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"
Loading