Chapter 7. Red or Green? Test Your Code

Usually, we run our unit tests from the build script. However, having the possibility to run them from the IDE can come in handy—one can jump to the failing class and start fixing bugs in no time. In IntelliJ IDEA, you can test your applications using multiple test frameworks. In this chapter, we will focus on installing plugins to test libraries, create tests, and set the runtime configuration to run them. After reading this chapter, you will be able to execute unit tests and include them in your workflow. Let's start with activating the needed plugins.

Enabling the testing plugins

Before you start, make sure you have the needed plugins installed and activated. Plugins for the most common testing libraries, ...

Get IntelliJ IDEA Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.