Wojtek Erbetowski
Wojtek Erbetowski

Reputation: 3275

How to run test in parallel (per test) using Gradle and JUnit

Can you run tests in a single Test class in parallel (per method)?

I am setting parallel execution with

test {
  maxParallelForks = 2
}

sample test

public class MyTest {
    @org.junit.Test
    public void testOne() {}

    @org.junit.Test
    public void testTwo() {}
}

but it works only with multiple classes.

Upvotes: 2

Views: 5310

Answers (1)

Louis Jacomet
Louis Jacomet

Reputation: 14500

There is no support for this in Gradle, the finest level of parallelisation is at the test class level.

Upvotes: 4

Related Questions