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: 6de49bff5d31168340944b251fedfe6b5fbc468b
Choose a base ref
...
head repository: istanbuljs/nyc
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4a6b327d5baa955bf5c945b233958fa38f561d49
Choose a head ref

Commits on Jun 15, 2016

  1. Copy the full SHA
    07d78c5 View commit details

Commits on Jun 16, 2016

  1. docs(env): Add reference to cross-env (#281)

    As discussed in #280
    Kent C. Dodds authored and bcoe committed Jun 16, 2016
    Copy the full SHA
    0c67c47 View commit details

Commits on Jun 30, 2016

  1. docs: add license title (#290)

    It's not strictly required, but it's useful metadata, and part of the recommended license template text (see http://choosealicense.com/licenses/isc/ and https://opensource.org/licenses/isc-license)
    waldyrious authored and bcoe committed Jun 30, 2016
    1
    Copy the full SHA
    9f1bf9e View commit details

Commits on Jul 1, 2016

  1. Copy the full SHA
    11a53c2 View commit details

Commits on Jul 4, 2016

  1. feat: nyc is being refactored to become the official Istanbul 1.0 bin (

    …#286)
    
    BREAKING CHANGE:
    
    significant chunks of nyc's API have been reworked, to use the Istanbul 1.0 API: source-map support, instrumentation, the check-coverage command, etc.
    bcoe authored Jul 4, 2016
    Copy the full SHA
    61a05ea View commit details
  2. docs: appveyor, you so wacky

    Benjamin Coe committed Jul 4, 2016
    Copy the full SHA
    48dbef6 View commit details

Commits on Jul 7, 2016

  1. fix: avoid pid collisions. (#301)

    With AVA's concurrency flag, it's possible that two processes during a test run will share the same pid.
    
    Avoid this collision by hashing the pid with process.hrtime for a truly unique value.
    jamestalmage authored and bcoe committed Jul 7, 2016
    Copy the full SHA
    f67bff7 View commit details
  2. feat: adds instrument command line option (#298)

    * feat: adds instrument command line option
    
    * fix: load instrumented version of NYC; fix option description based on @kentcdodds' code review
    
    * docs: update README.md
    
    * docs: gave README.md a once over, and made a few edits
    bcoe authored Jul 7, 2016
    Copy the full SHA
    e45b51b View commit details

Commits on Jul 8, 2016

  1. fix: disable the babel/nyc cache (#303)

    * fix: disable the babel/nyc cache
    
    * chore: add the command modules to package
    
    * docs: coverage was still looking at bcoe
    bcoe authored Jul 8, 2016
    Copy the full SHA
    104b3da View commit details

Commits on Jul 9, 2016

  1. chore(release): 7.0.0

    Benjamin Coe committed Jul 9, 2016
    Copy the full SHA
    60843a4 View commit details

Commits on Jul 14, 2016

  1. 4
    Copy the full SHA
    2b64cf8 View commit details

Commits on Jul 16, 2016

  1. chore: update all dependencies (#313)

    * chore: update all dependencies
    
    * fix: upgrade more dependencies, attempt to fix appveyor (because it's killing me)
    
    * fix: whoops, had yargs added twice
    bcoe authored Jul 16, 2016
    Copy the full SHA
    db257cd View commit details

Commits on Jul 17, 2016

  1. Copy the full SHA
    1ca42dc View commit details

Commits on Jul 24, 2016

  1. Copy the full SHA
    e0a8c0b View commit details
  2. Copy the full SHA
    3cda2e0 View commit details
  3. Copy the full SHA
    a0c87bc View commit details
  4. Copy the full SHA
    d0a8674 View commit details
  5. Handles correct path casing. Fixes #269. (#321)

    * Handles correct path casing. Fixes #269.
    
    * Fixed comment.
    Jim Buck authored and bcoe committed Jul 24, 2016
    Copy the full SHA
    92f8e16 View commit details
  6. fix: work around for Windows path issue nodejs/node#6624

    Benjamin Coe committed Jul 24, 2016
    Copy the full SHA
    6b1fed0 View commit details
  7. chore(release): 7.1.0

    Benjamin Coe committed Jul 24, 2016
    Copy the full SHA
    de1defa View commit details

Commits on Jul 30, 2016

  1. Copy the full SHA
    109818f View commit details

Commits on Aug 9, 2016

  1. Copy the full SHA
    b8d4109 View commit details
  2. fix: make nyc instrument work in subdirectories (#343)

    There is no real reason to use a relative path when performing the
    I/O for instrumenting. Absolute paths should work just as well
    and will be correct, even when `nyc.cwd` is off a bit because it
    is modified based on what `pkgUp` says.
    addaleax authored and bcoe committed Aug 9, 2016
    Copy the full SHA
    a82cf49 View commit details

Commits on Aug 12, 2016

  1. feat: upgrade to new test-exclude; with suppport for node_modules, an…

    …d empty exclude (#348)
    
    BREAKING CHANGE: node_modules is no longer automatically excluded, and an empty array of exclude rules can now be provided.
    bcoe authored Aug 12, 2016
    Copy the full SHA
    d616ffc View commit details
  2. Copy the full SHA
    bee0328 View commit details
  3. chore(release): 8.0.0

    Benjamin Coe committed Aug 12, 2016
    2
    Copy the full SHA
    e7b5d81 View commit details

Commits on Aug 14, 2016

  1. feat: implicitly assume node when the command starts with an option (

    …#350)
    
    Assume that commands starting with `-`, e.g. `--expose-gc script.js`,
    implicitly are Node.js commands.
    
    Fixes: #337
    addaleax authored and bcoe committed Aug 14, 2016
    Copy the full SHA
    2bb52cd View commit details
  2. Copy the full SHA
    edda16f View commit details
  3. Copy the full SHA
    22929db View commit details
  4. chore(release): 8.1.0

    Benjamin Coe committed Aug 14, 2016
    Copy the full SHA
    a54dc7f View commit details
  5. Copy the full SHA
    ceb458b View commit details

Commits on Aug 15, 2016

  1. docs: add issue template (#355)

    adds an issue template, to help us start collecting more actionable bug reports.
    bcoe authored Aug 15, 2016
    Copy the full SHA
    3bce0d1 View commit details
  2. docs: tweaks to issue template

    Benjamin Coe committed Aug 15, 2016
    Copy the full SHA
    3acec8b View commit details
  3. docs: a few small tweaks to issue template

    Benjamin Coe committed Aug 15, 2016
    Copy the full SHA
    7944c3f View commit details

Commits on Aug 23, 2016

  1. Copy the full SHA
    5b82b85 View commit details
  2. Copy the full SHA
    68dca81 View commit details
  3. docs: use babel-register in readme [ci skip] (#363)

    babel-core/register is deprecated (and other samples in the readme use babel-register)
    SimenB authored and JaKXz committed Aug 23, 2016
    Copy the full SHA
    2fba5ba View commit details

Commits on Aug 25, 2016

  1. docs: update README.md (#366)

    * Update README.md
    
    Adding note that since version 8.0 the node_modules is no more excluded automatically
    
    * Fixing text
    
    * Fixing grammar
    matheusrocha89 authored and bcoe committed Aug 25, 2016
    Copy the full SHA
    1189f3a View commit details

Commits on Aug 27, 2016

  1. Copy the full SHA
    d9709f8 View commit details
  2. cleanup: simplify istanbul-lib-coverage API usage (#369)

    - Deduplicate merging of all coverage files
    - Use the `map.getCoverageSummary()` convenience method
    - Use convenience getters of `CoverageSummary` objects
    addaleax authored and bcoe committed Aug 27, 2016
    Copy the full SHA
    6d32604 View commit details

Commits on Sep 2, 2016

  1. fix: upgrade standard, and a few other dependencies. fix standard nits (

    #375)
    
    * fix: upgrade standard, and a few other dependencies. fix standard nits
    
    * upgrade test-exclude while we're at it
    bcoe authored Sep 2, 2016
    Copy the full SHA
    64c68b7 View commit details
  2. feat: gather process tree information (#364)

    * feat: gather process tree information
    
    Add a `--show-process-tree` that shows a pretty tree of all spawned
    processes after `nyc` has run.
    
    The data files for that are stored in `processinfo` are stored in
    `(temp directory)/processinfo` so that they don’t interfere with
    the fixed format of the coverage files.
    
    Fixes: #158
    
    * [squash] cleanup: make ProcessTree instances nodes of the tree themselves
    
    This is in preparation for per-subtree coverage at some point.
    
    * [squash] add short section about --show-process-tree to readme
    addaleax authored and bcoe committed Sep 2, 2016
    Copy the full SHA
    fabe5f3 View commit details
  3. chore(release): 8.2.0

    Benjamin Coe committed Sep 2, 2016
    Copy the full SHA
    b9c0aea View commit details

Commits on Sep 7, 2016

  1. Copy the full SHA
    0e095bc View commit details
  2. Copy the full SHA
    ec2920f View commit details

Commits on Sep 13, 2016

  1. fix: add shim for check-coverage on node 0.10 (#386)

    * fix: add shim for check-coverage on node 0.10
    
    * fix: better, stronger, faster regex
    bcoe authored Sep 13, 2016
    Copy the full SHA
    9ebaea8 View commit details
  2. feat: refactored config to fix precedence of config vs. args (#388)

    * feat: refactored config to fix precedence of config vs. args see #379
    
    * fix: address standard nits
    
    * fix: remove cruft from package.json
    
    * fix: address @mourner's code review
    bcoe authored Sep 13, 2016
    Copy the full SHA
    99dbbb3 View commit details
  3. fix: upgrade to newer versions of source-map, signal-exit, and instru…

    …ment (#389)
    
    * feat: refactored config to fix precedence of config vs. args see #379
    
    * fix: address standard nits
    
    * fix: remove cruft from package.json
    
    * fix: upgrade to newer versions of source-map, signal-exit, and instrument (somewhat frightening)
    bcoe authored Sep 13, 2016
    Copy the full SHA
    a9bdf0f View commit details
  4. chore: accidentally left lib/config.js in merge conflict

    Benjamin Coe committed Sep 13, 2016
    Copy the full SHA
    bc0a99a View commit details

Commits on Sep 15, 2016

  1. Copy the full SHA
    1c2349b View commit details
Showing with 12,193 additions and 1,462 deletions.
  1. +1 −1 .babelrc
  2. +1 −0 .gitignore
  3. +5 −8 .travis.yml
  4. +553 −0 CHANGELOG.md
  5. +17 −0 ISSUE_TEMPLATE
  6. +2 −0 LICENSE.txt
  7. +206 −69 README.md
  8. +5 −3 appveyor.yml
  9. +53 −174 bin/nyc.js
  10. +13 −9 bin/wrap.js
  11. +4 −5 build-self-coverage.js
  12. +4 −4 build-tests.js
  13. +350 −149 index.js
  14. +46 −0 lib/commands/check-coverage.js
  15. +82 −0 lib/commands/instrument.js
  16. +51 −0 lib/commands/merge.js
  17. +45 −0 lib/commands/report.js
  18. +267 −0 lib/config-util.js
  19. +8 −0 lib/hash.js
  20. +39 −11 lib/instrumenters/istanbul.js
  21. +13 −1 lib/instrumenters/noop.js
  22. +37 −0 lib/process-args.js
  23. +98 −0 lib/process.js
  24. +4 −4 lib/self-coverage-helper.js
  25. +0 −187 lib/source-map-cache.js
  26. +57 −0 lib/source-maps.js
  27. +8,062 −0 package-lock.json
  28. +72 −55 package.json
  29. +0 −2 test/fixtures/.istanbul.yml
  30. +2 −2 test/fixtures/cache-collision-runner.js
  31. +1 −1 test/fixtures/check-instrumented.js
  32. +1 −0 test/fixtures/cli/args.js
  33. +15 −0 test/fixtures/cli/classes.js
  34. 0 test/fixtures/cli/empty.js
  35. +23 −0 test/fixtures/cli/es6.js
  36. +1 −0 test/fixtures/cli/external-instrumenter.js
  37. +3 −0 test/fixtures/cli/gc.js
  38. +200 −0 test/fixtures/cli/merge-input/a.json
  39. +200 −0 test/fixtures/cli/merge-input/b.json
  40. +5 −0 test/fixtures/cli/not-strict.js
  41. +3 −0 test/fixtures/cli/nycrc/.nycrc
  42. +9 −0 test/fixtures/cli/nycrc/.nycrc-config.json
  43. +1 −0 test/fixtures/cli/nycrc/ignore.js
  44. +11 −0 test/fixtures/cli/nycrc/index.js
  45. +5 −0 test/fixtures/cli/nycrc/package.json
  46. +4 −1 test/fixtures/cli/package.json
  47. +30 −0 test/fixtures/cli/selfspawn-fibonacci.js
  48. +2 −0 test/fixtures/cli/skip-full.js
  49. +1 −0 test/fixtures/cli/subdir/.gitignore
  50. +1 −0 test/fixtures/cli/subdir/input-dir/bad.js
  51. +2 −0 test/fixtures/cli/subdir/input-dir/index.js
  52. +1 −1 test/fixtures/conf-multiple-extensions/check-instrumented.es6
  53. +1 −1 test/fixtures/conf-multiple-extensions/check-instrumented.foo.bar
  54. +16 −0 test/fixtures/hooks/index.js
  55. +11 −0 test/fixtures/hooks/lib/ipsum.js
  56. +7 −0 test/fixtures/hooks/lib/lorem.js
  57. +10 −0 test/fixtures/hooks/package.json
  58. +14 −0 test/fixtures/identical-file-runner.js
  59. +5 −0 test/fixtures/identical-file1.js
  60. +5 −0 test/fixtures/identical-file2.js
  61. +2 −0 test/fixtures/source-maps/instrumented/s1.min.js
  62. +1 −0 test/fixtures/source-maps/instrumented/s1.min.js.map
  63. +2 −0 test/fixtures/source-maps/instrumented/s2.min.js
  64. +9 −0 test/fixtures/source-maps/original/s1.js
  65. +6 −0 test/fixtures/source-maps/original/s2.js
  66. +1 −0 test/fixtures/source-maps/package.json
  67. +16 −0 test/fixtures/stack-trace.js
  68. +5 −0 test/fixtures/transpile-hook.js
  69. +1,181 −0 test/nyc-bin.js
  70. +48 −0 test/nyc.js
  71. +79 −0 test/process-args.js
  72. +0 −273 test/src/nyc-bin.js
  73. +158 −327 test/src/{nyc-test.js → nyc-tap.js}
  74. +0 −174 test/src/source-map-cache.js
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"presets": ["es2015"]
"presets": ["env"]
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -4,4 +4,5 @@ node_modules
test/build/
.self_coverage
*.covered.js
*.swp
needs-transpile.js
13 changes: 5 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
sudo: false
language: node_js
node_js:
- 4
- 5
- "0.10"
- "0.12"
- 8
- 6
- "stable"

before_install:
- "npm config set progress=false"

git:
depth:
1
env:
secure: "SVg7NpV0Sru296kdp+eFl07RFjtJy242fWQ1KDCUdk/1EtZEOzBoSKP7Tn3zX/VLBieexL0T31EwYvRztnL97Sr8VgpYU0z95vCPO8FrixElJR6NH3dqrKeNzC3xOYdV0fy2b4UMlPJOI0aYDT1KHm1aWtkb2J8zqII+XbMtlDaelfHCDxa2+RBII9nYYDP62z+0chQFS6MGPSNwve3G2emYHZpYP5iTFmOzaFUCAjLskKvnnsY0jyx5XssqAo17747WKZl5SDgN8YHZIwhE5tB9m9j3MGjJhwdsR3kmq2om0GD1tQFFAXzWhWad3zNBUE4fLqswgASi39o5NIEzvSRzpw77ttOkkIFGem0l421Zi25W8x5n6GZvP06Y47ddmjNBlniwIzG4fb3dbIByCy/g5SjUYmfnke7stXXBKsPv0eEadlLGFWnG5RIfnyGjvUgQ//QXSAnBBzYF9IK+KUdU8c9kHF6kPybsGEzjQoX+4EJL6kZ4sNX9qxjHERUr4Jb6rAMOnKI9VtCBNqwcCC3nV5DDWHS86hKwbuTbBFkszP7majOi0kUQJTO/tZGwVVcphSDwhL5QkmMepLOqXyRICdUcB2ffXHYhZLiZPofYdom8csaDolqFkotJEBj3GM3gwHvUC3i1vxshxtjF6NHjanhpiIpHLRCs6R1RESE="

Loading