I have a beforeAll() function with execute db connection. I run test cases without parallel.
Does beforeAll() re-run after a test case failure?
This thread is trying to answer question "Does beforeAll() re-run after a test case failure within workers = 1?"
Yes, beforeAll will re-run if a test failed, because the whole worker will be killed and restarted (to make sure the worker is in a healthy state after a failure).
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 [email protected].