Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

[WIP] "Orchestrator like" execution mode #138

Merged
merged 12 commits into from
Apr 25, 2018
1 change: 1 addition & 0 deletions composer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dependencies {
compile libraries.apacheCommonsIo
compile libraries.apacheCommonsLang
compile libraries.gson
compile libraries.dexParser
}

dependencies {
Expand Down
7 changes: 6 additions & 1 deletion composer/src/main/kotlin/com/gojuno/composer/Apk.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package com.gojuno.composer
import com.gojuno.commander.android.aapt
import com.gojuno.commander.os.Notification
import com.gojuno.commander.os.process
import com.linkedin.dex.parser.DexParser
import com.linkedin.dex.parser.TestMethod
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks unused :)


sealed class TestPackage {
data class Valid(val value: String) : TestPackage()
Expand Down Expand Up @@ -61,4 +63,7 @@ fun parseTestRunner(testApkPath: String): TestRunner =
}
.toSingle()
.toBlocking()
.value()
.value()

fun parseTests(testApkPath: String) : List<TestMethod> =
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can add an integration test (we already have some that parse runner from test apk, you can add couple tests there)

Not that I don't trust this library, but it can help catch future regressions!

DexParser.findTestMethods(testApkPath)
2 changes: 2 additions & 0 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ ext.versions = [
apacheCommonsIo : '2.5',
apacheCommonsLang: '3.5',
gson : '2.8.0',
dexParser : '1.1.0',

junit : '4.12',
junitPlatform : '1.0.0-M4',
Expand All @@ -26,6 +27,7 @@ ext.libraries = [
apacheCommonsIo : "commons-io:commons-io:$versions.apacheCommonsIo",
apacheCommonsLang : "org.apache.commons:commons-lang3:$versions.apacheCommonsLang",
gson : "com.google.code.gson:gson:$versions.gson",
dexParser : "com.linkedin.dextestparser:parser:$versions.dexParser",

junit : "junit:junit:$versions.junit",
spek : "org.jetbrains.spek:spek-api:$versions.spek",
Expand Down