You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems like an issue from few versions ago since the new algorithm is to shard files as opposed to tests #21497 Comment
But even that seems to not be the correct statement since if it was true, then in my example the 1st shard should get all the tests while the remaining shards should get 0 tests. However seems like there is some form of hybrid shading algorithm at play here.
Besides that, there has to be a way to shard tests evenly even if I am using a single file because there are many usecases where users might generate tests dynamically and still have beforeEach or beforeAll in their test files.
Version
^1.48.0(latest)
Steps to reproduce
Example steps to reproduce.
tests/shard-test.spec.js
npx playwright test tests/shard-test.spec.js --shard=2/8
Expected behavior
doing no work
Actual behavior
Additional context
No response
Environment
System:
Binaries:
IDEs:
Languages:
npmPackages:
The text was updated successfully, but these errors were encountered: