Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the fundamentals of writing, finding, and running tests using IntelliJ IDEA and JUnit in this comprehensive 1-hour tutorial. Begin with creating example programs to ensure software functionality, focusing on both manual and automatic execution methods. Dive into JUnit 5's key components: the JUnit Platform and Test Engines. Start with a build-tool-agnostic approach using a plain `test.base` module in a free-style Java project, requiring only JDK 17.0.1 and IntelliJ IDEA's New Project Wizard. Introduce an example program `test.base.Main` to demonstrate basic "Run..." features in IntelliJ IDEA and Java's assertion capabilities. Transfer the example code into a JUnit Jupiter test method, exploring various sections of JUnit's User Guide on writing tests. Conclude by installing the "Mainrunner" test engine to showcase how plain Java programs can be executed as tests. Gain practical insights into effective testing practices and enhance your software development skills.
Syllabus
IntelliJ IDEA and JUnit: Writing, Finding, and Running Tests
Taught by
IntelliJ IDEA by JetBrains