perf(browser): improve the parallelisation logic #12057
Annotations
7 errors
test/browser/specs/locators.test.ts#L11
AssertionError: expected '\n RUN v2.1.4 D:/a/vitest/vitest/tes…' to contain '✓ blog.test.tsx'
- Expected
+ Received
- ✓ blog.test.tsx
+
+ RUN v2.1.4 D:/a/vitest/vitest/test/browser/fixtures/locators
+ Browser runner started by playwright at http://localhost:63315/
+
+ ✓ query.test.ts > can find a body element
+ ✓ query.test.ts > can find elements inside the body
+
+ Test Files 1 passed (2)
+ Tests 2 passed (3)
+ Start at 11:07:51
+ Duration 1.31s (transform 0ms, setup 189ms, collect 32ms, tests 43ms, environment 0ms, prepare 1.23s)
+
+
❯ specs/locators.test.ts:11:18
|
test/browser/specs/mocking.test.ts#L20
AssertionError: expected '\n RUN v2.1.4 D:/a/vitest/vitest/tes…' to contain 'not-mocked.test.ts'
- Expected
+ Received
- not-mocked.test.ts
+
+ RUN v2.1.4 D:/a/vitest/vitest/test/browser/fixtures/mocking
+ Browser runner started by playwright at http://localhost:63315/
+
+ ✓ import-mock.test.ts > all mocked are valid 520ms
+ ✓ import-mock.test.ts > import from a factory if defined
+ ✓ mocked-factory.test.ts > adds
+ ✓ import-mock.test.ts > imports from __mocks__
+ ✓ autospying.test.ts > correctly spies on a regular module
+ ✓ autospying.test.ts > spy options overrides __mocks__ folder
+ ✓ import-actual-query.test.ts > factory with a query
+ ✓ mocked-nested.test.ts > adds
+ ✓ import-actual-in-mock.test.ts > actual is overriding import
+ ✓ mocked-nested.test.ts > actual
+ ✓ mocked-factory-hoisted.test.ts > adds
+ ✓ mocked-do-mock-factory.test.ts > adds 569ms
+ ✓ import-actual-dep.test.ts > mocking works correctly
+ ✓ automocked.test.ts > adds
+ ✓ mocking-dep.test.ts > mocking works correctly
+ ✓ mocked-__mocks__.test.ts > adds
+
+ Test Files 12 passed (12)
+ Tests 16 passed (16)
+ Start at 11:05:08
+ Duration 7.34s (transform 0ms, setup 0ms, collect 6.39s, tests 1.51s, environment 0ms, prepare 9.20s)
+
+
❯ specs/mocking.test.ts:20:25
|
test/browser/specs/mocking.test.ts#L20
AssertionError: expected '\n RUN v2.1.4 D:/a/vitest/vitest/tes…' to contain 'not-mocked.test.ts'
- Expected
+ Received
- not-mocked.test.ts
+
+ RUN v2.1.4 D:/a/vitest/vitest/test/browser/fixtures/mocking
+ Browser runner started by playwright at http://localhost:63315/
+
+ ✓ import-mock.test.ts > all mocked are valid 588ms
+ ✓ mocked-factory.test.ts > adds
+ ✓ import-mock.test.ts > import from a factory if defined
+ ✓ autospying.test.ts > correctly spies on a regular module
+ ✓ import-mock.test.ts > imports from __mocks__
+ ✓ autospying.test.ts > spy options overrides __mocks__ folder
+ ✓ import-actual-query.test.ts > factory with a query
+ ✓ mocked-nested.test.ts > adds
+ ✓ import-actual-in-mock.test.ts > actual is overriding import
+ ✓ mocked-nested.test.ts > actual
+ ✓ mocked-do-mock-factory.test.ts > adds 477ms
+ ✓ mocked-factory-hoisted.test.ts > adds
+ ✓ import-actual-dep.test.ts > mocking works correctly
+ ✓ automocked.test.ts > adds
+ ✓ mocking-dep.test.ts > mocking works correctly
+ ✓ mocked-__mocks__.test.ts > adds
+
+ Test Files 12 passed (12)
+ Tests 16 passed (16)
+ Start at 11:05:16
+ Duration 7.02s (transform 0ms, setup 0ms, collect 6.64s, tests 1.48s, environment 0ms, prepare 8.49s)
+
+
❯ specs/mocking.test.ts:20:25
|
test/browser/specs/mocking.test.ts#L50
Error: Timeout when waiting for error "Waiting for file changes...".
Received:
stdout:
RERUN ../../1_mocked-on-watch-change.test.ts x1
stderr:
❯ specs/mocking.test.ts:50:16
|
test/browser/specs/runner.test.ts#L137
AssertionError: expected 'stderr | test/logs.test.ts > logging …' to contain 'Access denied to "/inaccesible/path".'
- Expected
+ Received
- Access denied to "/inaccesible/path".
+ stderr | test/logs.test.ts > logging to stdout
+ hello from console.trace
+ @http://localhost:63315/@fs/D:/a/vitest/vitest/test/browser/test/logs.test.ts:8:16
+ @http://localhost:63315/@fs/D:/a/vitest/vitest/packages/runner/dist/index.js:533:13
+ @http://localhost:63315/@fs/D:/a/vitest/vitest/packages/runner/dist/index.js:532:19
+ runWithTimeout@http://localhost:63315/@fs/D:/a/vitest/vitest/packages/runner/dist/index.js:39:9
+ @http://localhost:63315/@fs/D:/a/vitest/vitest/packages/runner/dist/index.js:1048:19
+ stderr | test/logs.test.ts > logging to stderr
+ hello from console.error
+ stderr | test/logs.test.ts > logging to stderr
+ hello from console.warn
+ stderr | test/logs.test.ts > logging invalid time
+ Timer "invalid timeLog" does not exist
+ stderr | test/logs.test.ts > logging invalid time
+ Timer "invalid timeEnd" does not exist
+ stderr | test/logs.test.ts > logging the stack
+ error with a stack
+ ❯ test/logs.test.ts:59:16
+
+ stderr | test/logs.test.ts > logging the stack
+ trace with a stack
+ @http://localhost:63315/@fs/D:/a/vitest/vitest/test/browser/test/logs.test.ts:50:16
+ @http://localhost:63315/@fs/D:/a/vitest/vitest/packages/runner/dist/index.js:533:13
+ @http://localhost:63315/@fs/D:/a/vitest/vitest/packages/runner/dist/index.js:532:19
+ runWithTimeout@http://localhost:63315/@fs/D:/a/vitest/vitest/packages/runner/dist/index.js:39:9
+ @http://localhost:63315/@fs/D:/a/vitest/vitest/packages/runner/dist/index.js:1048:19
+ stderr | test/dialog.test.ts > alert
+ Vitest encountered a `alert("test")` call that it cannot handle by default, so it returned `undefined`. Read more in https://vitest.dev/guide/browser/#thread-blocking-dialogs.
+ If needed, mock the `alert` call manually like:
+
+ ```
+ import { expect, vi } from "vitest"
+
+ vi.spyOn(window, "alert")
+ alert("test")
+ expect(alert).toHaveBeenCalledWith("test")
+ ```
+ stderr | test/dialog.test.ts > prompt
+ Vitest encountered a `prompt("test")` call that it cannot handle by default, so it returned `null`. Read more in https://vitest.dev/guide/browser/#thread-blocking-dialogs.
+ If needed, mock the `prompt` call manually like:
+
+ ```
+ import { expect, vi } from "vitest"
+
+ vi.spyOn(window, "prompt").mockReturnValue("your value")
+ prompt("test")
+ expect(prompt).toHaveBeenCalledWith("test")
+ ```
+ stderr | test/dialog.test.ts > confirm
+ Vitest encountered a `confirm("test")` call that it cannot handle by default, so it returned `false`. Read more in https://vitest.dev/guide/browser/#thread-blocking-dialogs.
+ If needed, mock the `confirm` call manually like:
+
+ ```
+ import { expect, vi } from "vitest"
+
+ vi.spyOn(window, "confirm").mockReturnValue(true)
+ confirm("test")
+ expect(confirm).toHaveBeenCalledWith("test")
+ ```
+ WARNING: Some tests are still running when generating the JSON report.This is likely an internal bug in Vitest.Please report it to https://github.com/vitest-dev/vitest/issues
+ WARNING: Some tests are still running when generating the JSON report.This is likely an internal bug in Vitest.Please report it to https://github.com/vitest-dev/vitest/issues
+ ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 3 ⎯⎯⎯⎯⎯⎯⎯
+
+ FAIL test/dom.test.ts > dom related activity > renders div
+ TimeoutError: locator.screenshot: Timeout 53.30799999999999ms exceeded.
+ Call log:
+ - taking element screenshot
+ - waiting for fonts to load...
+ - fonts loaded
+ - attempting scroll into view action
+ - waiting for element to be stable
+
+
+ Failure screenshot:
+ - test/__screenshots__/dom.test.ts/dom-related-activity-renders-div-2.png
+
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/3]⎯
+
+ FAIL test/failing.test.ts > correctly fails and prints a diff
+ AssertionError: expected 1 to be 2 // Object.is equality
+
+ Failure screenshot:
+ - test/__screenshots__/failing.test.ts/correctly-fails-and-prints-a-diff-1.png
+
+ - Expected to be
+ + But got
+
+ - 2
+ + 1
+
+ ❯ test/failing.test.ts:5
|
test/browser/specs/runner.test.ts#L145
Error: Snapshot `user-event 1` mismatched
- Expected
+ Received
{
- "cleanup-retry.test.ts": "pass",
+ "cleanup-retry.test.ts": "run",
- "cleanup1.test.ts": "pass",
+ "cleanup1.test.ts": "run",
"cleanup2.test.ts": "pass",
}
❯ specs/runner.test.ts:145:87
|
|
This job failed
Loading