Intelij 2019.1 update breaks JUnit tests

前端 未结 6 2022
长情又很酷
长情又很酷 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:40

    If you are using JUnit5 with Gradle, add below code to build.gradle file.

    test {
        useJUnitPlatform()
    }
    

    I've got a hint from https://www.baeldung.com/junit-5-gradle

提交回复
热议问题