Contents

git commit -m "Order Test Execution JUnit5 [blogpost] [junit5] [annotations] [testing]"

Contents

Order Test Execution in JUnit5 Jupiter
https://medium.com/pareture/order-test-execution-in-junit5-jupiter-e3d61ab15f26

import org.junit.jupiter.api.MethodOrderer.OrderAnnotation;
import org.junit.jupiter.api.Order;

@TestMethodOrder(OrderAnnotation.class)
public class TestSuite1
{
@Test
@Order(1)
public void test1() throws InterruptedException
{
…
@Test
@Order(2)
public void test2() throws InterruptedException
{
…
…


Source: commit 3741e5e in My-Notes.