Closed victorlmneves closed 2 years ago
By default coverage is disabled. You can enable it with the --coverage
flag or with the collectCoverage
option.
Hi @Akryum
That's what I did on the test
object, collectCoverage: true
But I also tried to run the task with --coverage
flag and it also didn't generate the coverage folder + HTML report files
I'm only able to see a kind of resume on the terminal
Looks like you are using an older version of peeky.
@Akryum looks like it was an issue with the version 0.12.0 For some reason, it was a little outdated (I have added it last week to the project) I have updated to 0.13.2 and now it's working fine (even the report on the terminal, now it's based on Istanbul and not like on the screenshot)
@Akryum But now it doesn't report *.vue files that don't test as it did before 😔
@Akryum I already knew about that issue, but I believe you were using a different tool before as I went to check the changes, and C8 was added now. But yeah, looks like I need to wait for them to fix it as I don't have the knowledge to do it. I just mention it because I did a POC with Peeky and Vitest to choose one to add to the project that we are starting and the team has pointed it as an extra point compared to Vitest to have on the report, Vue files that didn't have a test. Thanks
I'm testing Peeky and I setup it to generate the coverage report as described in the docs [https://peeky.dev/guide/config.html#coverageoptions] but the folder isn't created nor the files
This is how I have it on my vite.config file