playwright icon indicating copy to clipboard operation
playwright copied to clipboard

docs(java): update JUnit examples with new fixtures

Open jfgreffier opened this issue 6 months ago • 2 comments

Documentation for JUnit integration aka JUnit fixtures https://github.com/microsoft/playwright-java/issues/1369

Work in progress

  • [x] update examples
  • [x] list available fixtures in test-runners page
  • [x] Add examples and explanations of Options

jfgreffier avatar Feb 07 '24 20:02 jfgreffier

@uchagani

My understanding is that @TestInstance(TestInstance.Lifecycle.PER_CLASS) is not needed anymore for parallel tests when using @UsePlaywright. Correct me if I'm wrong

jfgreffier avatar Feb 07 '24 21:02 jfgreffier

@jfgreffier correct it doesn't matter from a parallel testing perspective. The user can use it if they want but it's more controlling the lifecycle of the test class and not the parallelism.

The user only needs to set up parallelism according to Junit5 docs but playwright currently only supports class-level parallelism and not method-level.

uchagani avatar Feb 07 '24 21:02 uchagani

Sounds like a plan.

jfgreffier avatar Feb 21 '24 09:02 jfgreffier