Using multiple workers causes project to be repeatably built despite using `server:true`
I am using Playwright and nuxt test utils. My playwright config looks like this:
I've set
server: true
to reuse the same server. However if i set workers > 1, the project is rebuilt and a new dev server is started in each worker. This causes an issue, since port 4001 is already in use after the first worker has been started. Thus the tests fail when using multiple workers. Also it just seems wasteful to rebuild the whole project in each worker.
Is this expected behaviour? If so is there a way i can reuse the build and dev server on all workers?
If not, should I create an issue?1 Reply
Looks like there's a draft PR that'll do what I want: https://github.com/nuxt/test-utils/pull/881
GitHub
feat(playwright): reuse existing server by Barbapapazes · Pull Requ...
related to #803
Hello 👋,
I was trying this module to write tests cause I really think tests are important.
But, in development, this module, e2e with Playwright, is slow. So slow that it creates to...