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

Commits on Nov 7, 2016

  1. Copy the full SHA
    f8e06e4 View commit details
  2. docs: pdate README.md to suggest --save-dev (#437)

    There is very little chance people will need coverage as more then a dev dependency.
    thepont authored and bcoe committed Nov 7, 2016
    Copy the full SHA
    4d15610 View commit details

Commits on Nov 10, 2016

  1. Copy the full SHA
    31488f5 View commit details

Commits on Nov 13, 2016

  1. feat: node_modules is again excluded by default when custom exclude i…

    …s provided (#442)
    
    BREAKING CHANGE: **/node_modules/** is again excluded by default.
    bcoe authored Nov 13, 2016
    Copy the full SHA
    2828538 View commit details
  2. Copy the full SHA
    b6713a3 View commit details
  3. chore(release): 9.0.0

    Benjamin Coe committed Nov 13, 2016
    Copy the full SHA
    cc96078 View commit details

Commits on Nov 14, 2016

  1. chore: upgrade yargs and test-exclude dependencies

    Benjamin Coe committed Nov 14, 2016
    Copy the full SHA
    87eade0 View commit details
  2. fix: there's one more exluce rule now

    Benjamin Coe committed Nov 14, 2016
    Copy the full SHA
    177f3b4 View commit details
  3. Copy the full SHA
    eaaa07a View commit details
  4. fix: and another broken test

    Benjamin Coe committed Nov 14, 2016
    Copy the full SHA
    c3d8975 View commit details
  5. fix: finished test-exclude yak-shave.

    Benjamin Coe committed Nov 14, 2016
    Copy the full SHA
    21a9a70 View commit details
  6. Copy the full SHA
    4e5111d View commit details
  7. chore(release): 9.0.1

    Benjamin Coe committed Nov 14, 2016
    Copy the full SHA
    c4b81c0 View commit details
  8. docs: cleanup changelog

    Benjamin Coe committed Nov 14, 2016
    Copy the full SHA
    c3c4d38 View commit details

Commits on Nov 22, 2016

  1. feat: cache now turned on by default (#454)

    BREAKING CHANGE: nyc's cache is now enabled by default
    bcoe authored Nov 22, 2016
    4
    Copy the full SHA
    0dd970c View commit details
  2. fix: debug-log should be production dependency

    Benjamin Coe committed Nov 22, 2016
    Copy the full SHA
    a3c7f83 View commit details
  3. chore(release): 10.0.0

    Benjamin Coe committed Nov 22, 2016
    Copy the full SHA
    68b78e3 View commit details

Commits on Dec 3, 2016

  1. Copy the full SHA
    64ae4f3 View commit details

Commits on Dec 11, 2016

  1. Copy the full SHA
    8603aa9 View commit details

Commits on Dec 27, 2016

  1. Copy the full SHA
    e0ef1d5 View commit details
  2. chore(release): 10.0.1

    Benjamin Coe committed Dec 27, 2016
    Copy the full SHA
    2e39e00 View commit details

Commits on Jan 2, 2017

  1. Copy the full SHA
    e01ec8c View commit details
  2. chore(release): 10.0.2

    Benjamin Coe committed Jan 2, 2017
    Copy the full SHA
    093963b View commit details

Commits on Jan 16, 2017

  1. Copy the full SHA
    7b4c090 View commit details
  2. Copy the full SHA
    1022b16 View commit details
  3. Copy the full SHA
    0a1d72a View commit details

Commits on Jan 17, 2017

  1. Copy the full SHA
    7708235 View commit details
  2. feat: upgrade to istanbul-lib-instrument with support for 'const foo …

    …= function () {}' name preservation. upgrade to istanbul-lib-hook with fix for ts-node. (#494)
    bcoe authored Jan 17, 2017
    Copy the full SHA
    d8d2de0 View commit details
  3. Copy the full SHA
    8b58c05 View commit details
  4. Copy the full SHA
    8c58d68 View commit details
  5. chore(release): 10.1.0

    Benjamin Coe committed Jan 17, 2017
    Copy the full SHA
    8f7af3a View commit details

Commits on Jan 18, 2017

  1. fix: fix bug related to merging coverage reports see #482

    Benjamin Coe committed Jan 18, 2017
    Copy the full SHA
    81229a0 View commit details
  2. chore(release): 10.1.1

    Benjamin Coe committed Jan 18, 2017
    Copy the full SHA
    e03cd48 View commit details
  3. fix: revert defaulting to empty file-coverage report, this caused too…

    … many issues
    Benjamin Coe committed Jan 18, 2017
    Copy the full SHA
    25aec77 View commit details
  4. chore(release): 10.1.2

    Benjamin Coe committed Jan 18, 2017
    Copy the full SHA
    e46335f View commit details

Commits on Jan 29, 2017

  1. Copy the full SHA
    6a59834 View commit details
  2. feat: exclude the coverage/ folder by default 🚀 (#502)

    * chore(package): update test-exclude to version 4.0.0
    
    https://greenkeeper.io/
    
    *
    greenkeeperio-bot authored and JaKXz committed Jan 29, 2017
    Copy the full SHA
    50adde4 View commit details

Commits on Feb 7, 2017

  1. Copy the full SHA
    98ebdff View commit details

Commits on Mar 22, 2017

  1. Copy the full SHA
    43535f9 View commit details

Commits on Mar 28, 2017

  1. Copy the full SHA
    95cc09a View commit details
  2. chore(release): 10.2.0

    Benjamin Coe committed Mar 28, 2017
    Copy the full SHA
    455619f View commit details

Commits on Apr 6, 2017

  1. Copy the full SHA
    9f2d45f View commit details

Commits on Apr 8, 2017

  1. docs: switch to conventional commits badge

    Benjamin Coe committed Apr 8, 2017
    Copy the full SHA
    fdf3e97 View commit details

Commits on Apr 12, 2017

  1. docs(readme): move advanced features to docs site (#551)

    * docs: s/ES6/ES2015+
    JaKXz authored Apr 12, 2017
    Copy the full SHA
    3c0d81f View commit details
  2. chore: test node 6 on travis (#553)

    build: drop some EOL versions like v5 and v0.12
    SimenB authored and JaKXz committed Apr 12, 2017
    Copy the full SHA
    2ff8f3b View commit details

Commits on Apr 20, 2017

  1. fix: source-maps were not being cached in the parent process when --a…

    …ll was being used (#556)
    
    
    
    fixes: #537
    bcoe authored Apr 20, 2017
    Copy the full SHA
    ff73b18 View commit details

Commits on Apr 29, 2017

  1. Copy the full SHA
    1887d1c View commit details
  2. Copy the full SHA
    89dc7a6 View commit details
  3. chore(release): 10.3.0

    Benjamin Coe committed Apr 29, 2017
    Copy the full SHA
    55e826d View commit details

Commits on May 4, 2017

  1. fix: introduced a bug that resulted in source-maps not being loaded a…

    …pproriately on second test run (#566)
    bcoe authored May 4, 2017
    Copy the full SHA
    1bf74fd View commit details
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