diff --git a/test_runner/src/main/kotlin/ftl/run/platform/android/CreateAndroidTestContext.kt b/test_runner/src/main/kotlin/ftl/run/platform/android/CreateAndroidTestContext.kt index cc97b1f2fd..a45dd0e118 100644 --- a/test_runner/src/main/kotlin/ftl/run/platform/android/CreateAndroidTestContext.kt +++ b/test_runner/src/main/kotlin/ftl/run/platform/android/CreateAndroidTestContext.kt @@ -64,11 +64,11 @@ private fun InstrumentationTestContext.getFlankTestMethods( ): List = getParametrizedClasses().let { parameterizedClasses: List -> DexParser.findTestMethods(test.local).asSequence() - .distinct() - .filter(testFilter.shouldRun) - .filterNot(parameterizedClasses::belong) - .map(TestMethod::toFlankTestMethod).toList() - .plus(parameterizedClasses.map(String::toFlankTestMethod)) + .distinctBy { it.testName } + .filter(testFilter.shouldRun) + .filterNot(parameterizedClasses::belong) + .map(TestMethod::toFlankTestMethod).toList() + .plus(parameterizedClasses.map(String::toFlankTestMethod)) } private fun List.belong(method: TestMethod) = any { className -> method.testName.startsWith(className) }