| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
✅ Deploy Preview for vitest-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Sorry, something went wrong.
|
@vitest/browser
npm i https://pkg.pr.new/@vitest/browser@7665
npm i https://pkg.pr.new/@vitest/coverage-istanbul@7665
npm i https://pkg.pr.new/@vitest/coverage-v8@7665
npm i https://pkg.pr.new/@vitest/expect@7665
npm i https://pkg.pr.new/@vitest/mocker@7665
npm i https://pkg.pr.new/@vitest/pretty-format@7665
npm i https://pkg.pr.new/@vitest/runner@7665
npm i https://pkg.pr.new/@vitest/spy@7665
npm i https://pkg.pr.new/@vitest/snapshot@7665
npm i https://pkg.pr.new/@vitest/ui@7665
npm i https://pkg.pr.new/@vitest/utils@7665
npm i https://pkg.pr.new/vite-node@7665
npm i https://pkg.pr.new/vitest@7665
npm i https://pkg.pr.new/@vitest/web-worker@7665
npm i https://pkg.pr.new/@vitest/ws-client@7665 commit: c58a06e |
Sorry, something went wrong.
|
@nstepien can you check if this improves things for you? watch mode, no-isolation and debugging don't work properly now, but I think just running with --run should work |
Sorry, something went wrong.
|
With our unchanged config: npx vitest run
RUN v3.0.8 D:/repo
4:04:53 PM [vite] (client) Re-optimizing dependencies because lockfile has changed
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Errors ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Vitest caught 1 unhandled error during the test run.
This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected.
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Error: [vitest-api]: Timeout calling "createTesters"
❯ Object.onTimeoutError node_modules/@vitest/browser/dist/index.js:3010:17
❯ Timeout._onTimeout node_modules/@vitest/browser/dist/index.js:2715:41
❯ listOnTimeout node:internal/timers:614:17
❯ process.processTimers node:internal/timers:549:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Test Files (232)
Tests 53 passed (65)
Errors 1 error
Start at 16:04:53
Duration 74.49s (transform 0ms, setup 1.57s, collect 2.46s, tests 0ms, environment 0ms, prepare 1.07s)
At first I though it was breaking the default reporter, but it's actually only running one test suite at a time. |
Sorry, something went wrong.
|
Another run in a subset of our codebase: npx vitest run src/camp
RUN v3.0.8 D:/repo
✓ chromium src/....test.tsx (13 tests) 13214ms
✓ chromium src/....test.tsx (6 tests) 8096ms
✓ chromium src/....test.tsx (11 tests) 7908ms
✓ chromium src/....test.tsx (3 tests) 2447ms
✓ chromium src/....test.tsx (3 tests) 1469ms
Test Files 5 passed (5)
Tests 36 passed (36)
Start at 16:16:19
Duration 46.19s (transform 0ms, setup 2.45s, collect 1.50s, tests 33.13s, environment 0ms, prepare 528ms)
it runs to completion, but it still only runs one test suite at a time. |
Sorry, something went wrong.
This was a mistake on my part. Last minute if broke the parallelisation because of isolate: false
Does it print any tests running? It seems like there is a timeout for createTesters - there shouldn't be one |
Sorry, something went wrong.
It does, seems like the default reporter behaves as expected. |
Sorry, something went wrong.
|
The latest build works better, but I still get the Timeout calling "createTesters" error before I can confirm whether parallelization has been fixed. |
Sorry, something went wrong.
|
The latest builds work great now 👍 |
Sorry, something went wrong.
Is it any faster than before? |
Sorry, something went wrong.
|
Absolutely, yes |
Sorry, something went wrong.
Can you share the numbers? |
Sorry, something went wrong.
|
In our CI, before: Duration 800.08s (transform 0ms, setup 679.36s, collect 877.16s, tests 1486.22s, environment 0ms, prepare 207.40s) After, with maxWorkers: 8 because tests somehow become flaky with increased parallelization, we need to fix our tests: Duration 360.87s (transform 0ms, setup 364.73s, collect 483.01s, tests 1519.42s, environment 0ms, prepare 64.00s) Once we fix our flaky tests it'll be faster still. |
Sorry, something went wrong.
|
With this change, firefox now fails consistently on Windows 😞 I am also getting weird time outs in different tests I think we should wait for #7377 to be fixed first before releasing this |
Sorry, something went wrong.
v3.1.2 🐞 Bug Fixes Add global chai variable in vitest/globals (fix: #7474) - by @Jay-Karia in vitest-dev/vitest#7771 and vitest-dev/vitest#7474 (d9297) Prevent modifying test.exclude when same object passed in coverage.exclude - by @AriPerkkio in vitest-dev/vitest#7774 (c3751) Fix already hoisted mock - by @hi-ogawa in vitest-dev/vitest#7815 (773b1) Fix test.scoped inheritance - by @hi-ogawa in vitest-dev/vitest#7814 (db6c3) Remove pointer-events-none after resizing the left panel - by @alexprudhomme in vitest-dev/vitest#7811 (a7e77) Default to run mode when stdin is not a TTY - by @kentonv, @hi-ogawa and @sheremet-va in vitest-dev/vitest#7673 (6358f) Use happy-dom/jsdom types for envionmentOptions - by @hi-ogawa in vitest-dev/vitest#7795 (67430) browser: Fix transform error before browser server initialization - by @hi-ogawa in vitest-dev/vitest#7783 (5f762) Fix mocking from outside of root - by @hi-ogawa in vitest-dev/vitest#7789 (03f55) Scale iframe for non ui case - by @hi-ogawa in vitest-dev/vitest#6512 (c3374) coverage: await profiler calls - by @AriPerkkio in vitest-dev/vitest#7763 (795a6) Expose profiling timers - by @AriPerkkio in vitest-dev/vitest#7820 (5652b) deps: Update all non-major dependencies - in vitest-dev/vitest#7765 (7c3df) Update all non-major dependencies - in vitest-dev/vitest#7831 (15701) runner: Correctly call test hooks and teardown functions - by @sheremet-va in vitest-dev/vitest#7775 (3c00c) Show stacktrace on test timeout error - by @hi-ogawa in vitest-dev/vitest#7799 (df33b) ui: Load panel sizes from storage on initial load - by @userquin in vitest-dev/vitest#7265 (6555d) vite-node: Named export should overwrite export all - by @hi-ogawa in vitest-dev/vitest#7846 (5ba0d) Add ERR_MODULE_NOT_FOUND code error if module cannot be loaded - by @sheremet-va in vitest-dev/vitest#7776 (f9eac) 🏎 Performance browser: Improve browser parallelisation - by @sheremet-va in vitest-dev/vitest#7665 (816a5)
|
I understand that this fix shall run multiple test files in parallel in browser-mode. However, I am unable to achieve that in a non-headless mode, i.e. only one test file is running at a time. Repository Do I misunderstand anything or what am I missing out? When setting browser.headless: true, the test files indeed run in parallel. Is there anyway to achieve the same without using headless? |
Sorry, something went wrong.
Tests run in parallel only in headless mode. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Description
Fixes #7616
Fixes #6834
This made tests run 2 as fast as before in PW provider for me
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
Documentation
Changesets