且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 Android Studio 中运行参数化单元测试时,未找到给定的测试包括错误

更新时间:2023-11-16 22:23:04

如果您使用的是 JUnit 5+,请确保从正确的库中导入 @Test 注释:

If you're using JUnit 5+, make sure you import the @Test annotation from the correct library:

导入 org.junit.jupiter.api.Test

不是

import org.junit.Test