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

add shortcut for istanbul's check-coverage command #30

Merged
merged 3 commits into from
Jun 24, 2015
Merged

Conversation

bcoe
Copy link
Member

@bcoe bcoe commented Jun 20, 2015

Added shortcut for istanbul's check-coverage command, see #29

@Raynos, would you mind giving this branch a spin, and letting me know if this was what you're looking for?

@Raynos
Copy link

Raynos commented Jun 20, 2015

I will do; Working on a node service scaffold this weekend; I'll add nyc to it.

@bcoe
Copy link
Member Author

bcoe commented Jun 20, 2015

👍

bcoe added a commit that referenced this pull request Jun 24, 2015
add shortcut for istanbul's check-coverage command
@bcoe bcoe merged commit 9c0378f into master Jun 24, 2015
@bcoe bcoe deleted the check-coverage branch June 24, 2015 15:53
@Raynos
Copy link

Raynos commented Jun 24, 2015

Verified locally; works for me :) thanks

// run a report.
process.env.NYC_CWD = process.cwd()

;(new NYC({
reporter: argv.reporter
})).report()
} else if (~argv._.indexOf('check-coverage')) {
foreground(
path.resolve(__dirname, '../node_modules/.bin/istanbul'),
Copy link
Contributor

Choose a reason for hiding this comment

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

This will break if the istanbul dependency was fulfilled by a version installed in a parent node_modules. Or if your dependency tree has been flattened by npm@3, if I'm not mistaken...

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