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: 4e9545a0c039032585149bf503c797f975e1e982
Choose a base ref
...
head repository: istanbuljs/nyc
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e21721a2145ff719d4eb07cf4de4d96f7ed56b72
Choose a head ref
Loading
Showing with 13,537 additions and 1,988 deletions.
  1. +3 −0 .babelrc
  2. +20 −0 .editorconfig
  3. +26 −0 .github/ISSUE_TEMPLATE.md
  4. +6 −0 .github/stale.yml
  5. +5 −2 .gitignore
  6. +23 −6 .travis.yml
  7. +859 −1 CHANGELOG.md
  8. +2 −0 LICENSE.txt
  9. +405 −71 README.md
  10. +77 −116 bin/nyc.js
  11. +21 −0 bin/wrap.js
  12. +43 −0 build-self-coverage.js
  13. +80 −0 docs/profiling.md
  14. +34 −0 docs/setup-codecov.md
  15. +34 −0 docs/setup-coveralls.md
  16. +516 −116 index.js
  17. +66 −0 lib/commands/check-coverage.js
  18. +122 −0 lib/commands/instrument.js
  19. +53 −0 lib/commands/merge.js
  20. +109 −0 lib/commands/report.js
  21. +290 −0 lib/config-util.js
  22. +30 −0 lib/hash.js
  23. +48 −0 lib/instrumenters/istanbul.js
  24. +21 −0 lib/instrumenters/noop.js
  25. +37 −0 lib/process-args.js
  26. +92 −0 lib/process.js
  27. +56 −0 lib/source-maps.js
  28. +0 −3 node_modules/foreground-child/.npmignore
  29. +0 −6 node_modules/foreground-child/.travis.yml
  30. +0 −15 node_modules/foreground-child/LICENSE
  31. +0 −33 node_modules/foreground-child/README.md
  32. +0 −54 node_modules/foreground-child/index.js
  33. +0 −1 node_modules/foreground-child/node_modules/.bin/win-spawn
  34. +0 −15 node_modules/foreground-child/node_modules/win-spawn/.npmignore
  35. +0 −41 node_modules/foreground-child/node_modules/win-spawn/README.md
  36. +0 −12 node_modules/foreground-child/node_modules/win-spawn/bin/win-spawn
  37. +0 −64 node_modules/foreground-child/node_modules/win-spawn/index.js
  38. +0 −45 node_modules/foreground-child/node_modules/win-spawn/package.json
  39. +0 −40 node_modules/foreground-child/package.json
  40. +0 −150 node_modules/foreground-child/test/basic.js
  41. +0 −8 node_modules/spawn-wrap/.travis.yml
  42. +0 −15 node_modules/spawn-wrap/LICENSE
  43. +0 −62 node_modules/spawn-wrap/README.md
  44. +0 −225 node_modules/spawn-wrap/index.js
  45. +0 −5 node_modules/spawn-wrap/lib/is-windows.js
  46. +0 −7 node_modules/spawn-wrap/lib/win-rebase.js
  47. +0 −24 node_modules/spawn-wrap/node_modules/os-homedir/index.js
  48. +0 −21 node_modules/spawn-wrap/node_modules/os-homedir/license
  49. +0 −70 node_modules/spawn-wrap/node_modules/os-homedir/package.json
  50. +0 −33 node_modules/spawn-wrap/node_modules/os-homedir/readme.md
  51. +0 −41 node_modules/spawn-wrap/package.json
  52. +0 −139 node_modules/spawn-wrap/shim.js
  53. +0 −26 node_modules/spawn-wrap/t.js
  54. +0 −139 node_modules/spawn-wrap/test/basic.js
  55. +0 −3 node_modules/spawn-wrap/test/fixtures/script.js
  56. +0 −20 node_modules/spawn-wrap/test/win-rebase.js
  57. +5,491 −0 package-lock.json
  58. +85 −32 package.json
  59. BIN screen.png
  60. BIN screen2.png
  61. +20 −0 self-coverage-helper.js
  62. +0 −2 test/fixtures/.istanbul.yml
  63. +71 −0 test/fixtures/_generateReport.js
  64. +23 −0 test/fixtures/cache-collision-runner.js
  65. +15 −0 test/fixtures/cache-collision-target.js
  66. +20 −0 test/fixtures/cache-collision-worker.js
  67. +7 −0 test/fixtures/check-instrumented.js
  68. +1 −0 test/fixtures/child-1.js
  69. +1 −0 test/fixtures/child-2.js
  70. +6 −0 test/fixtures/cli/.instrument-nycrc
  71. +1 −0 test/fixtures/cli/args.js
  72. +15 −0 test/fixtures/cli/classes.js
  73. 0 test/fixtures/cli/empty.js
  74. +1 −0 test/fixtures/cli/env.js
  75. +23 −0 test/fixtures/cli/es6.js
  76. +1 −0 test/fixtures/cli/external-instrumenter.js
  77. +2 −0 test/fixtures/cli/fakebin/.gitignore
  78. +9 −0 test/fixtures/cli/fakebin/npm-template.js
  79. +3 −0 test/fixtures/cli/gc.js
  80. +9 −0 test/fixtures/cli/half-covered-failing.js
  81. +9 −0 test/fixtures/cli/half-covered.js
  82. +200 −0 test/fixtures/cli/merge-input/a.json
  83. +200 −0 test/fixtures/cli/merge-input/b.json
  84. +9 −0 test/fixtures/cli/no-transform/half-covered.xjs
  85. +5 −0 test/fixtures/cli/not-strict.js
  86. +1 −0 test/fixtures/cli/nyc-config-js/ignore.js
  87. +11 −0 test/fixtures/cli/nyc-config-js/index.js
  88. +3 −0 test/fixtures/cli/nyc-config-js/nyc.config.js
  89. +9 −0 test/fixtures/cli/nyc-config-js/nycrc-config.js
  90. +5 −0 test/fixtures/cli/nyc-config-js/package.json
  91. +3 −0 test/fixtures/cli/nycrc/.nycrc
  92. +9 −0 test/fixtures/cli/nycrc/.nycrc-config.json
  93. +1 −0 test/fixtures/cli/nycrc/ignore.js
  94. +11 −0 test/fixtures/cli/nycrc/index.js
  95. +5 −0 test/fixtures/cli/nycrc/package.json
  96. +6 −0 test/fixtures/cli/package.json
  97. +9 −0 test/fixtures/cli/run-npm-test-recursive/half-covered.js
  98. +8 −0 test/fixtures/cli/run-npm-test-recursive/package.json
  99. +9 −0 test/fixtures/cli/run-npm-test/half-covered.js
  100. +6 −0 test/fixtures/cli/run-npm-test/package.json
  101. +30 −0 test/fixtures/cli/selfspawn-fibonacci.js
  102. +2 −0 test/fixtures/cli/skip-full.js
  103. +2 −0 test/fixtures/cli/subdir/.gitignore
  104. +1 −0 test/fixtures/cli/subdir/input-dir/bad.js
  105. +2 −0 test/fixtures/cli/subdir/input-dir/exclude-me/index.js
  106. +2 −0 test/fixtures/cli/subdir/input-dir/include-me/exclude-me.js
  107. +2 −0 test/fixtures/cli/subdir/input-dir/include-me/include-me.js
  108. +2 −0 test/fixtures/cli/subdir/input-dir/index.js
  109. +2 −0 test/fixtures/cli/subdir/input-dir/node_modules/index.js
  110. +1 −0 test/fixtures/cli/test.js
  111. +6 −0 test/fixtures/conf-empty/package.json
  112. +7 −0 test/fixtures/conf-multiple-extensions/check-instrumented.es6
  113. +7 −0 test/fixtures/conf-multiple-extensions/check-instrumented.foo.bar
  114. +7 −0 test/fixtures/conf-multiple-extensions/check-instrumented.js
  115. +2 −0 test/fixtures/conf-multiple-extensions/not-loaded.es6
  116. +2 −0 test/fixtures/conf-multiple-extensions/not-loaded.js
  117. +17 −0 test/fixtures/conf-multiple-extensions/package.json
  118. +2 −0 test/fixtures/exclude-node-modules/.gitignore
  119. 0 test/fixtures/exclude-node-modules/bin/do-nothing.js
  120. +1 −0 test/fixtures/exclude-node-modules/node_modules/@istanbuljs/fake-module-1/index.js
  121. +1 −0 test/fixtures/exclude-node-modules/node_modules/@istanbuljs/fake-module-2/index.js
  122. +1 −0 test/fixtures/exclude-node-modules/package.json
  123. +16 −0 test/fixtures/hooks/index.js
  124. +11 −0 test/fixtures/hooks/lib/ipsum.js
  125. +7 −0 test/fixtures/hooks/lib/lorem.js
  126. +10 −0 test/fixtures/hooks/package.json
  127. +14 −0 test/fixtures/identical-file-runner.js
  128. +5 −0 test/fixtures/identical-file1.js
  129. +5 −0 test/fixtures/identical-file2.js
  130. +5 −8 test/fixtures/package.json
  131. +793 −0 test/fixtures/report.js
  132. +2 −0 test/fixtures/source-maps/instrumented/s1.min.js
  133. +1 −0 test/fixtures/source-maps/instrumented/s1.min.js.map
  134. +2 −0 test/fixtures/source-maps/instrumented/s2.min.js
  135. +9 −0 test/fixtures/source-maps/original/s1.js
  136. +6 −0 test/fixtures/source-maps/original/s2.js
  137. +1 −0 test/fixtures/source-maps/package.json
  138. +5 −0 test/fixtures/spawn.js
  139. +16 −0 test/fixtures/stack-trace.js
  140. +15 −0 test/fixtures/transpile-hook.js
  141. +23 −0 test/lib/reset-state.js
  142. +533 −0 test/nyc-index.js
  143. +1,846 −0 test/nyc-integration.js
  144. +0 −317 test/nyc-test.js
  145. +80 −0 test/process-args.js
  146. +95 −0 test/processinfo.js
  147. +20 −0 test/source-maps.js
  148. +517 −0 test/src/nyc-tap.js
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["env"]
}
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true

[*]

# Change these settings to your own preference
indent_style = space
indent_size = 2

# We recommend you to keep these unchanged
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!--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 occurrring 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
```
6 changes: 6 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
exemptLabels:
- "Great First Contribution"
- pinned
- security

staleLabel: stale
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
.nyc_output
coverage
node_modules
!node_modules/spawn-wrap
!node_modules/foreground-child
test/build/
.self_coverage
self-coverage/
*.swp
needs-transpile.js
29 changes: 23 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,25 @@
sudo: false
language: node_js
os:
- windows
- linux
- osx
node_js:
- '0.12'
- '0.10'
- iojs
env:
- secure: "SVg7NpV0Sru296kdp+eFl07RFjtJy242fWQ1KDCUdk/1EtZEOzBoSKP7Tn3zX/VLBieexL0T31EwYvRztnL97Sr8VgpYU0z95vCPO8FrixElJR6NH3dqrKeNzC3xOYdV0fy2b4UMlPJOI0aYDT1KHm1aWtkb2J8zqII+XbMtlDaelfHCDxa2+RBII9nYYDP62z+0chQFS6MGPSNwve3G2emYHZpYP5iTFmOzaFUCAjLskKvnnsY0jyx5XssqAo17747WKZl5SDgN8YHZIwhE5tB9m9j3MGjJhwdsR3kmq2om0GD1tQFFAXzWhWad3zNBUE4fLqswgASi39o5NIEzvSRzpw77ttOkkIFGem0l421Zi25W8x5n6GZvP06Y47ddmjNBlniwIzG4fb3dbIByCy/g5SjUYmfnke7stXXBKsPv0eEadlLGFWnG5RIfnyGjvUgQ//QXSAnBBzYF9IK+KUdU8c9kHF6kPybsGEzjQoX+4EJL6kZ4sNX9qxjHERUr4Jb6rAMOnKI9VtCBNqwcCC3nV5DDWHS86hKwbuTbBFkszP7majOi0kUQJTO/tZGwVVcphSDwhL5QkmMepLOqXyRICdUcB2ffXHYhZLiZPofYdom8csaDolqFkotJEBj3GM3gwHvUC3i1vxshxtjF6NHjanhpiIpHLRCs6R1RESE="
- "node"
- 10
- 8
- 6
matrix:
## An ENOMEM error occurs with 11.6.0 under Travis-CI for Windows.
## Disable until we can determine the cause.
# include:
# - os: windows
# node_js: "latest"
exclude:
- os: windows
node_js: "node"
git:
depth:
1

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