Can anyone explain why I'm seeing the "No tests found for given includes" error?

I’m encountering an issue where my Parameterized Unit Tests in Android Studio are not running.

Specifically, I get an error saying “No tests found for given includes.” The tests run successfully when I remove the Parameterized tests and switch to individual tests. Can anyone explain why I’m seeing the “No tests found for given includes” error and if Parameterized unit tests are supported in Android development?

If you’re using JUnit 5 or later, ensure that you import the @Test annotation from the correct library import org.junit.jupiter.api.Test; instead of import org.junit.Test;

In your build.gradle file, add the following configuration to enable JUnit 5:

test {
    useJUnitPlatform()
}