Skip to content

cli-plugin-unit-mocha test coverage support #3084

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

Closed
jorge-fernandes opened this issue Dec 5, 2018 · 1 comment
Closed

cli-plugin-unit-mocha test coverage support #3084

jorge-fernandes opened this issue Dec 5, 2018 · 1 comment

Comments

@jorge-fernandes
Copy link

What problem does this feature solve?

Currently is next to impossible to use/configure vue-cli's cli-plugin-unit-mocha with nyc and get some reliable test coverage going. This feature would allow all devs to get out-of-the-box test coverage up and running.

As it stands now, it seems configuring webpack from scratch if easier than use vue-clie 3 out-of-the-box solutions, since everything is way easier and faster beside test coverage, which reverted me back to a pure webpack build.

If it's actually easy to accomplish this, perhaps just a up-to-date doc on how to actually achieve this can be a solution, but for now i can't get nyc to work in combination with vue-cli-service test:unit

What does the proposed API look like?

Perhaps cli-plugin-unit-mocha should also inject a new command for coverage:

vue-cli-service test:unit:coverage

@haoqunjiang
Copy link
Member

Duplicate of #1363

@haoqunjiang haoqunjiang marked this as a duplicate of #1363 Dec 6, 2018
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

No branches or pull requests

2 participants