Intelij 2019.1 update breaks JUnit tests

前端 未结 6 1991
长情又很酷
长情又很酷 2020-12-29 06:14

After 2019.1 update broke all tests with error:

no tests found for given includes xxxx.someThingTest

6条回答
  •  执笔经年
    2020-12-29 06:43

    When using JUnit 5, make sure that you use the interfaces provided by org.junit.jupiter

    So for instance, you should annotate your tests with org.junit.jupiter.api.Test instead of org.junit.Test

    For JUnit 4, and prior, use the interfaces provided by org.junit

提交回复
热议问题