Why not run playwright tests in isolation? #767
Replies: 2 comments
-
I could be convinced that having a separate database for the end-to-end test could be valuable. However you would not be able to do an individual test for each end to end test with playwright. You wouldn't want to spin up a separate instance of the app for every one of those tests. Additionally there's a lot of value in having all of the tests running at the same time against the same instance of the app and database to ensure that your application can handle that kind of load. So if someone wants to put together an example of running playwrights against a database that is separate from the development database, I would be open to looking into that and seeing whether it's reliable. |
Beta Was this translation helpful? Give feedback.
-
Ok, closing for now, until we get our MVP out |
Beta Was this translation helpful? Give feedback.
-
I did not see any reason for this in the decisions folder, and so I looked in the fullstack testing repo, and I found
But I don't understand the benefits and can't find them listed anywhere.
The only reason I can think of would be that you only have to run one testing server, but just wanted to verify if that's it?
We're running into issues with not having the tests run in isolation, and some test suites actually depend on not running in isolation. But why not have a single test db per test file like in
vitest
?Admittedly I'm new to playwright and have never put much emphasis on e2e tests, so there might be a simple solution to this, so pardon my ignorance
Beta Was this translation helpful? Give feedback.
All reactions