Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Running single method test with Parameterized.Parameters#name through adb shell am instrument makes the test ignores
STEPS TO REPRODUCE:
1. Create test:
```
@RunWith(Parameterized::class)
public class TmpTest(
private val value: MyEnum,
) {
private companion object {
@JvmStatic
@Parameterized.Parameters(name = "{0}")
fun data() = MyEnum.values()
}
@Test
public fun test() {
value shouldBe value
}
}
```
2. Run it with `adb shell am instrument -w -e class com.package-name.TmpTest#test com.package.name.test/androidx.test.runner.AndroidJUnitRunner`
3. Output is:
```
Time: 0
OK (0 tests)
```
4. When using `@Parameterized.Parameters` instead of `@Parameterized.Parameters(name = "{0}")` the test works:
```
Time: 0.434
OK (2 tests)
```
Studio Build: Build #AI-231.9392.1.2311.11076708, built on November 9, 202
Version of Gradle Plugin: 8.2.1
Version of Gradle: 8.5
Version of Java: 17
OS: Mac Ventura 13.5