IntelliJ IDEA and JUnit: Writing, Finding, and Running Tests

Writing example programs is a good start to ensure your software does what it should do. The goal is for those example programs to be manually and also automatically executable. Manual execution is usually performed locally via the command-line interface or from within an IDE, while automatic execution is done remotely via continuous integration services and headless tooling support. JUnit 5, which consists of two major components, the JUnit Platform and Test Engines, enables software authors and tool developers alike to achieve those goals. We will start this session build-tool-agnostic, – with a plain `` module in a free-style Java project. An installation of the JDK built by Oracle and the New Project Wizard offered by IntelliJ IDEA are all we need –; no external build tool is required. Next, we’ll introduce an example program to show and run some “test“ code: ``. Here we’ll explore some basic “Run...“ features of IntelliJ IDEA and what Java itself has to offer in the real
Back to Top