Gradle Jacoco and JUnit5

后端 未结 4 757
抹茶落季
抹茶落季 2021-02-05 08:28

We just ported our unit tests to JUnit5. Realizing that this is still rather early adoption with little hints on google.

The most challenging was to get jacoco code cove

4条回答
  •  感情败类
    2021-02-05 09:11

    You just need to add @RunWith(JUnitPlatform.class) to your package

    @RunWith(JUnitPlatform.class)
    public class ClassTest {
    }
    

提交回复
热议问题