Knowledge Base > Legacy Information - JCover > Frameworks and assertions

Frameworks and assertions

JCover can create unit tests for the JUnit and TestNG Java testing frameworks:

To set the JUnit version:

--junit version

To use TestNG:


Additionally, JCover can create unit tests with the following types of assertions/matchers:

To use Hamcrest matchers:


To use AssertJ assertions:


To use Google Truth assertions:


To use the assertions of the testing framework: