1

In order to avoid race condition and isolate usage of a shared resource, I want to run some specific tests in a forked jvm.

How should I do it with Junit 5 & Gradle?

andreoss
  • 1,570
  • 1
  • 10
  • 25

1 Answers1

0

I'm not good in Gradle, but in maven we can do that by excluding class or packages from a profile like that :

<configuration>
      <excludes>
        <exclude>**/TestCircle.java</exclude>
        <exclude>**/TestSquare.java</exclude>
      </excludes>
    </configuration>

With a simple search, I found that it is possible with gradle. You can check that link : Gradle documentation

AyoubMK
  • 526
  • 1
  • 4
  • 19