Skip to content

Commit 040bfe2

Browse files
authored
Merge pull request #778 from Vacxe/fix-local-bundling
fix(vendor): fix local test bundling
2 parents 79bb67c + a4a994f commit 040bfe2

File tree

1 file changed

+3
-1
lines changed
  • vendor/vendor-android/src/main/kotlin/com/malinskiy/marathon/android

1 file changed

+3
-1
lines changed

Diff for: vendor/vendor-android/src/main/kotlin/com/malinskiy/marathon/android/DexTestParser.kt

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ class DexTestParser(
1919
val testBundles = vendorConfiguration.testBundlesCompat()
2020
return testBundles.flatMap { bundle ->
2121
val tests = DexParser.findTestMethods(bundle.testApplication.absolutePath)
22+
val androidTestBundle =
23+
AndroidTestBundle(bundle.application, bundle.testApplication, bundle.extraApplications, bundle.splitApks)
2224
return@flatMap tests.map {
2325
val testName = it.testName
2426
val annotations = it.annotations.map { annotation -> annotation.toMetaProperty() }
@@ -34,7 +36,7 @@ class DexTestParser(
3436
val className = packageAndClassName.substring(lastDotIndex + 1 until packageAndClassName.length)
3537

3638
val test = Test(packageName, className, methodName, annotations)
37-
testBundleIdentifier.put(test, AndroidTestBundle(bundle.application, bundle.testApplication, bundle.extraApplications, bundle.splitApks))
39+
testBundleIdentifier.put(test, androidTestBundle)
3840
test
3941
}
4042
}

0 commit comments

Comments
 (0)