Running JUnit Tests in IntelliJ IDEA

Follow the steps to run JUnit tests using Gradle.

Context

To run an integration test using Gradle:

Procedure

  1. In IntelliJ IDEA, choose Delegate IDE build/run actions to gradle, and Run tests using: Gradle Test Runner.
  2. Select a test and run it.

    The test executes with correct classpath.