Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelpasterz committed Jun 8, 2021
1 parent ff41e13 commit d4fea83
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions test_runner/src/main/kotlin/ftl/run/model/AndroidTestContext.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ import ftl.args.AndroidArgs
import ftl.args.IgnoredTestCases
import ftl.shard.Chunk

interface WithArgs {
val args: AndroidArgs
}

sealed class AndroidTestContext : WithArgs
sealed class AndroidTestContext(open val args: AndroidArgs)

data class InstrumentationTestContext(
val app: FileReference,
Expand All @@ -20,22 +16,22 @@ data class InstrumentationTestContext(
val environmentVariables: Map<String, String> = emptyMap(),
val testTargetsForShard: ShardChunks = emptyList(),
override val args: AndroidArgs
) : AndroidTestContext()
) : AndroidTestContext(args)

data class RoboTestContext(
val app: FileReference,
val roboScript: FileReference,
override val args: AndroidArgs
) : AndroidTestContext()
) : AndroidTestContext(args)

data class GameLoopContext(
val app: FileReference,
val scenarioLabels: List<String>,
val scenarioNumbers: List<String>,
override val args: AndroidArgs
) : AndroidTestContext()
) : AndroidTestContext(args)

data class SanityRoboTestContext(
val app: FileReference,
override val args: AndroidArgs
) : AndroidTestContext()
) : AndroidTestContext(args)

0 comments on commit d4fea83

Please sign in to comment.