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

Text reporter still creates a coverage/.tmp/ folder when test fail #6538

Open
6 tasks done
fkworld opened this issue Sep 20, 2024 · 1 comment · May be fixed by #6547
Open
6 tasks done

Text reporter still creates a coverage/.tmp/ folder when test fail #6538

fkworld opened this issue Sep 20, 2024 · 1 comment · May be fixed by #6547
Labels
feat: coverage Issues and PRs related to the coverage feature p3-minor-bug An edge case that only affects very specific usage (priority)

Comments

@fkworld
Copy link

fkworld commented Sep 20, 2024

Describe the bug

Related to #5722

Run

npx vitest run --coverage --coverage.reporter=text

If test fail, you will get coverage/.tmp/ folder.

Reproduction

https://stackblitz.com/edit/vitest-dev-vitest-qhzlfu?file=test%2Fbasic.test.ts

System Info

System:
    OS: macOS 15.0
    CPU: (8) arm64 Apple M1 Pro
    Memory: 1.78 GB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.19.0 - /usr/local/bin/node
    npm: 10.8.3 - /usr/local/bin/npm
    pnpm: 9.10.0 - /usr/local/bin/pnpm
  Browsers:
    Safari: 18.0

Used Package Manager

npm

Validations

@fkworld
Copy link
Author

fkworld commented Sep 20, 2024

I solved this problem by adding the option "reportOnFailure: true".

But I don't think this is the final way.

@AriPerkkio AriPerkkio added feat: coverage Issues and PRs related to the coverage feature p3-minor-bug An edge case that only affects very specific usage (priority) and removed pending triage labels Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat: coverage Issues and PRs related to the coverage feature p3-minor-bug An edge case that only affects very specific usage (priority)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants