Knowledge Base > IntelliJ Plugin > Gradle dependencies
Gradle dependencies
After the Diffblue Cover IntelliJ plugin has written tests for your project, they will be automatically integrated into your test suite. Before you can run the tests, you need to add any required dependencies for your particular build system.
Add the dependencies
Tests created by Diffblue Cover make use of the JUnit testing framework so JUnit is included in the required dependencies below. This dependency is available from the Gradle Central Repository.
To add the JUnit dependency to your local Gradle repository file:
-
Edit the
build.gradle
file. -
Add Maven to the
repositories
section.repositories { mavenCentral() }
-
Add JUnit to the
dependencies
section:Groovy:
dependencies { testCompile group: 'junit', name: 'junit', version: '4.8.2' }
Kotlin:
dependencies { testCompile("junit:junit:4.8.2") }
Run the tests
Choose one of the new test classes in the project explorer, right-click and select 'Run ClassnameTest'
.
The IDE will then show the results of the JUnit run.