How to run parallel tests in Junit?

How to run parallel tests in Junit?

Hello Matthew,

Users can run the parallel tests in Junit. Please find the sample script of the browser argument below:

static Stream<Arguments> browser() {
       return Stream.of(
               arguments("Chrome"),
               arguments("Firefox")
       );
   }

static Stream<Arguments> browser() {
       return Stream.of(
               arguments("Chrome"),
               arguments("Firefox")
       );
   }