vaadin / testbench

Vaadin TestBench is a tool for automated user interface testing of Vaadin applications.
https://vaadin.com/testbench
Other
20 stars 22 forks source link

Not a way to specify when a test is not thread safe #1184

Open manolo opened 5 years ago

manolo commented 5 years ago

Testbench does not consider the standard way of annotation with @NoThreadSafe a class so as only a test is run at once. It neither supports threadCount parameters defined in the failsafe plugin specification. The only way is to define a com.vaadin.testbench.Parameters.testsInParallel property globally

MarcinVaadin commented 1 year ago

After moving to JUnit5 it is possible to define @ResourceLock per type or method, more details: https://junit.org/junit5/docs/snapshot/user-guide/#writing-tests-parallel-execution-synchronization.

It should solve the issue.

Defining thread count is also possible using JUnit5 parallel properties - junit.jupiter.execution.parallel.config.fixed.parallelism = 2

@manolo - if it's ok for you please close the ticket.