spring+gradle,在测试时候报错,No tests found for given includes

参考https://stackoverflow.com/questions/30474767/no-tests-found-for-given-includes-error-when-running-parameterized-unit-test-in

1.设置idea

spring+gradle,在测试时候报错,No tests found for given includes_第1张图片

2.配置gradle

test {
    useJUnitPlatform()
}

3.看你@Test导入的包

要改成这个包import org.junit.jupiter.api.Test;

不能是

import org.junit.Test;

你可能感兴趣的:(gradle)