1
1
package com.malinskiy.marathon.android
2
2
3
- import com.malinskiy.marathon.execution.Configuration
4
3
import com.malinskiy.marathon.test.MetaProperty
5
4
import com.malinskiy.marathon.test.Test
6
5
import kotlinx.coroutines.runBlocking
@@ -17,42 +16,13 @@ class AndroidTestParserSpek : Spek(
17
16
18
17
group("android test apk") {
19
18
val apkFile = File (javaClass.classLoader.getResource("android_test_1.apk").file)
20
- val configuration = Configuration (
19
+ val componentInfo = AndroidComponentInfo (
21
20
name = "",
22
- outputDir = File (""),
23
- customAnalyticsTracker = null,
24
- poolingStrategy = null,
25
- shardingStrategy = null,
26
- sortingStrategy = null,
27
- batchingStrategy = null,
28
- flakinessStrategy = null,
29
- retryStrategy = null,
30
- filteringConfiguration = null,
31
- strictRunFilterConfiguration = null,
32
- cache = null,
33
- ignoreFailures = null,
34
- isCodeCoverageEnabled = null,
35
- fallbackToScreenshots = null,
36
- strictMode = null,
37
- listener = null,
38
- uncompletedTestRetryQuota = null,
39
- testClassRegexes = null,
40
- includeSerialRegexes = null,
41
- excludeSerialRegexes = null,
42
- ignoreFailureRegexes = null,
43
- failFastFailureRegexes = null,
44
- testBatchTimeoutMillis = null,
45
- testOutputTimeoutMillis = null,
46
- noDevicesTimeoutMillis = null,
47
- debug = null,
48
- vendorConfiguration = AndroidConfiguration (
49
- implementationModules = emptyList(),
50
- androidSdk = File (""),
51
- applicationOutput = File (""),
52
- testApplicationOutput = apkFile
53
- )
21
+ applicationId = null,
22
+ testApplicationId = "com.example.test",
23
+ applicationOutput = null,
24
+ testApplicationOutput = apkFile
54
25
)
55
- val componentInfo = AndroidComponentInfoExtractor ().extract(configuration)
56
26
57
27
it("should return proper list of test methods") {
58
28
val extractedTests = runBlocking { parser.extract(componentInfo) }
@@ -71,4 +41,3 @@ class AndroidTestParserSpek : Spek(
71
41
}
72
42
}
73
43
})
74
-
0 commit comments