Run JUnit tests during Gradle Build
Answered
I'm not sure whether this is an Intellij or Gradle question. I'm fairly new to using Intellij and Gradle.
I have a Java project using Gradle for build and deployment and using JUnit 5 for unit tests. I can see how to explicitly run the tests in Intellij. How do I integrate running the tests into Gradle?
- Create a Gradle task to run the tests.
- Run the tests automatically whenever a Gradle Build runs.
Please sign in to leave a comment.
Looks like Gradle question, see https://docs.gradle.org/current/userguide/java_plugin.html#sec:java_test.