Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instrumenter test and callback #703

Merged
merged 2 commits into from
Oct 30, 2017
Merged

Instrumenter test and callback #703

merged 2 commits into from
Oct 30, 2017

Conversation

thegecko
Copy link
Contributor

@bcoe As #697 fixed the source-map issues I was looking to fix in #696, this PR only contains the other minor fixes included in that PR.

Specifically:

  • Added a test to prove sub-directories can be instrumented
  • Added a missing callback call and exit code to ensure all tests still pass

@coveralls
Copy link

coveralls commented Oct 29, 2017

Coverage Status

Changes Unknown when pulling a7bdd8a on thegecko:master into ** on istanbuljs:master**.

@@ -479,6 +479,23 @@ describe('the nyc cli', function () {
done()
})
})

it('allows a sub-directory of files to be instrumented', function (done) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome \o/ thank you for the test. random aside, I think these integration tests are probably the approach I should have taken all along with nyc, I think I might start retiring some of the older crufty test files that are kicking around.

@bcoe bcoe merged commit 7ea96ba into istanbuljs:master Oct 30, 2017
@bcoe
Copy link
Member

bcoe commented Nov 28, 2017

@thegecko your changes are set to be released in 11.4.0; would love your help testing:

npm i nyc@next -- (you should see 11.4.0 install).

@thegecko
Copy link
Contributor Author

Confirmed!

  "dependencies": {
    "nyc": "^11.4.0"
  }

All changes LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants