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

--merge-reports option not generate coverage as expected #6757

Closed
6 tasks done
liam61 opened this issue Oct 21, 2024 · 1 comment
Closed
6 tasks done

--merge-reports option not generate coverage as expected #6757

liam61 opened this issue Oct 21, 2024 · 1 comment

Comments

@liam61
Copy link

liam61 commented Oct 21, 2024

Describe the bug

Hi, I just create a project from latest vite and vitest, and test the --shared and --merge-reports option.
But not collect the right coverage percentage, the coverage-final.json file is empty!

image

Reproduction

  1. yarn vite create
  2. add vitest dependence
  3. add simple tests
  4. use --shared and --merge-reports option

image

System Info

System:
    OS: macOS 13.4
    CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
    Memory: 116.41 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.20.3 - ~/.nvm/versions/node/v18.20.3/bin/node
    Yarn: 1.22.22 - ~/.nvm/versions/node/v18.20.3/bin/yarn
    npm: 10.7.0 - ~/.nvm/versions/node/v18.20.3/bin/npm
  Browsers:
    Chrome: 129.0.6668.101
    Safari: 16.5
  npmPackages:
    @vitejs/plugin-react: ^4.3.3 => 4.3.3 
    @vitejs/plugin-react-swc: ^3.5.0 => 3.7.1 
    @vitest/browser: ^2.1.3 => 2.1.3 
    @vitest/coverage-v8: ^2.1.3 => 2.1.3 
    @vitest/ui: ^2.1.3 => 2.1.3 
    vite: ^5.4.8 => 5.4.9 
    vitest: ^2.1.3 => 2.1.3

Used Package Manager

yarn

Validations

Copy link

Hello @liam61. Please provide a minimal reproduction using a GitHub repository or StackBlitz (you can also use examples). Issues marked with needs reproduction will be closed if they have no activity within 3 days.

@liam61 liam61 changed the title --merge-result option not generate coverage as expected --merge-reports option not generate coverage as expected Oct 21, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants