JUnit 5 – How to disable tests?
JUnit 5 @Disabled example to disable tests on the entire test class or individual test methods. P.S Tested with JUnit 5.5.2 Note You can also disable tests based on conditions. 1. @Disabled on Method 1.1 The test method testCustomerServiceGet is disabled. DisabledMethodTest.java package com.mkyong.disable; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; public class DisabledMethodTest { …