LogoIntelliJ IDEA Guide
TipsTutorialsPlaylistsTechnologiesTopicsAbout

Get IntelliJ IDEA

Up to Writing JUnit 5 Tests
Writing JUnit 5 Tests

IntroductionSetting up Gradle for JUnit 5Creating and running a testOptional ConfigurationDisabling or Ignoring TestsHelpful Test Names for DisplayLive Templates TipMultiple AssertionsTest AssumptionsData Driven TestsChecking ExceptionsGrouping TestsShortcuts
Next

Introduction

Introduction to writing JUnit 5 Tests

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

Published

  • Helen Scott Thumbnail
    2021-01-01
    by:
    Helen Scott

Tutorial Steps

  • 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

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