After Diffblue Cover 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 dependency
Tests created by Diffblue Cover make use of the JUnit testing framework so
JUnit is included in the required dependency below. This dependency is available from the Maven Central Repository. To add it, follow the guide relevant to your build tool.
Check whether or not the JUnit dependency is already in your local Maven repository. If not, follow the instructions below to add it:
- Edit the root
Add this dependency information to the
<dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.8.2</version> <scope>test</scope> </dependency>
Run the tests
Choose one of the new test classes in the project explorer, right-click and select
The IDE will then show the results of the JUnit run.