IntelliJ IDEA
 
Get IntelliJ IDEA
You are viewing the documentation for an earlier version of IntelliJ IDEA.

Prepare for testing

Last modified: 11 February 2024

IntelliJ IDEA works with multiple Java testing frameworks out of the box, for example, JUnit, Spock, TestNG, or Cucumber.

In the IDE, you can create a test class directly from the source code together with the necessary test methods. You can switch between test classes and source code with a shortcut, run multiple tests, view statistics for each test, and export test results to a file.

IntelliJ IDEA also features code coverage that allows you to analyze your code and understand which areas of your code are covered by tests and which areas require more testing.

For more information about testing your code in other languages, refer to: