Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]: Do all tests run in parallel? #7546

Closed
mahaveer0496 opened this issue Jul 10, 2021 · 2 comments
Closed

[Question]: Do all tests run in parallel? #7546

mahaveer0496 opened this issue Jul 10, 2021 · 2 comments

Comments

@mahaveer0496
Copy link

mahaveer0496 commented Jul 10, 2021

Your question

First of all thanks for the amazing library! It's awesome to work with. 🙌


I noticed that tests in separate files run in parallel but what about tests in the same file? Are they always executed sequentially?

For the snippet below will the 2nd test always get executed after the first one?

// foo.js

test('A' ({page}) => {})
test('B' ({page}) => {})

What about this snippet?

// foo.js
describe('some description', ()=>{
  test('A' ({page}) => {})
  test('B' ({page}) => {})
})
@mxschmitt
Copy link
Member

mxschmitt commented Jul 10, 2021

A test file gets executed in a single worker so the tests inside a file don't run in parallel. Currently they do run sequentially per file in terms of the order.

@mahaveer0496
Copy link
Author

Thank you so much for the quick reply! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants