JetBrainsGuide
Topics
Remote Development
Remote Development
TechnologiesJavaScript and TypeScriptPythonJavaGo.NETKotlin
SolutionsGame DevelopmentJetBrains AI Guide: How to Use AI in Your IDERemote DevelopmentDatabasesDjango
Hot tagsAmazon AWSDebuggingGitGoogle CloudGradleRefactoring
Browse more content...
Explore

JavaJava
DownloadBlogDocs

Tutorial

  • Introduction
  • Setting up Gradle for JUnit 5
  • Creating and running a test
  • Optional Configuration
  • Disabling or Ignoring Tests
  • Helpful Test Names for Display
  • Live Templates Tip
  • Multiple Assertions
  • Test Assumptions
  • Data Driven Tests
  • Checking Exceptions
  • Grouping Tests
  • Shortcuts
  • Writing JUnit 5 Tests
  • Introduction

Introduction

Introduction to writing JUnit 5 Tests.

Helen Scott

Helen Scott

2021-01-01
Edit this page

In this tutorial, we’re going to look at features of JUnit 5 that can make it easier for us to write effective and readable automated tests.

Other Resources

  • JUnit docs
  • Migrating from JUnit 4 to JUnit 5 – blog, with embedded video
  • Unit Testing and Coverage in IntelliJ IDEA (video)
  • Editor Tips & Tricks (blog and video)
  • Top 15 IntelliJ IDEA Shortcuts Blog (blog and video)
  • Code used in blog, video and guide

Setting up Gradle for JUnit 5
  • Privacy & Security
  • Terms of Use
  • Trademarks
  • Legal
  • Genuine tools

Copyright © 2000–2025 JetBrains s.r.o.