Skip to content

HTML Coverage report showing wrong files when including files using src #165

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

Open
alexgrozav opened this issue Feb 25, 2019 · 2 comments
Open
Labels

Comments

@alexgrozav
Copy link

This might be related to #36. When I'm running tests with code coverage on my project, the code coverage report is showing a different .vue file than the one I'm opening.

You can see the behaviour when running tests using npm run test on inkline: https://github.com/inkline/inkline, then opening one of the generated coverage files, such as tests/coverage/components/CheckboxGroup/index.vue.html

Any help would be appreciated.

@alexgrozav
Copy link
Author

A possible cause for this could be that all the files are named index.vue.

@alexgrozav
Copy link
Author

alexgrozav commented Feb 25, 2019

I can confirm that the coverage files start showing properly again after moving components/MyComponent/index.vue to components/MyComponent.vue and writing the script, style and template inside the vue file instead of using src.

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

No branches or pull requests

2 participants