← Back to Discord Forum

Runny fully parallel but need a single file with multiple tests to run in order


A test suite I am working on is set at the config level to be fully parallel. But I have a requirement to have tests in one file run in order. I do not want to mark this file to run in serial mode because a failure in the first test would cause the 2nd test to skip.

Is there a way to run fully parallel but exclude a spec file from doing that?

This thread is trying to answer question "Is there a way to run a test suite fully in parallel but exclude a spec file from doing that without causing subsequent tests to fail if one test fails?"

2 replies

yeah... add serial() to the describe, which should be run in a order - test.describe.seria(...) have a look here -> https://playwright.dev/docs/next/test-retries#serial-mode

Thanks, but as mentioned I don't want to run serial because if one tests fails, subsequent tests fail. So i'm looking for a half way house....

AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.