Skip to content

Commit ac75432

Browse files
committed
improve messages
1 parent 28c7474 commit ac75432

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

maestro-cli/src/main/java/maestro/cli/command/TestCommand.kt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ import kotlin.time.Duration.Companion.seconds
6262
import maestro.orchestra.util.Env.withDefaultEnvVars
6363

6464
@CommandLine.Command(
65-
name = "test", description = ["Test a Flow or set of Flows on a local iOS Simulator or Android Emulator"]
65+
name = "test",
66+
description = ["Test a Flow or set of Flows on a local iOS Simulator or Android Emulator"],
6667
)
6768
class TestCommand : Callable<Int> {
6869

@@ -87,13 +88,13 @@ class TestCommand : Callable<Int> {
8788

8889
@Option(
8990
names = ["--shard-split"],
90-
description = ["Splits the tests across N connected devices"],
91+
description = ["Run the tests across N connected devices, splitting the tests evenly across them"],
9192
)
9293
private var shardSplit: Int? = null
9394

9495
@Option(
9596
names = ["--shard-all"],
96-
description = ["Replicates all the tests across N connected devices"],
97+
description = ["Run all the tests across N connected devices"],
9798
)
9899
private var shardAll: Int? = null
99100

@@ -119,7 +120,8 @@ class TestCommand : Callable<Int> {
119120
private var output: File? = null
120121

121122
@Option(
122-
names = ["--debug-output"], description = ["Configures the debug output in this path, instead of default"]
123+
names = ["--debug-output"],
124+
description = ["Configures the debug output in this path, instead of default"],
123125
)
124126
private var debugOutput: String? = null
125127

@@ -186,7 +188,9 @@ class TestCommand : Callable<Int> {
186188
throw CliError(e.message)
187189
}
188190

189-
env = env.withInjectedShellEnvVars().withDefaultEnvVars(flowFile)
191+
env = env
192+
.withInjectedShellEnvVars()
193+
.withDefaultEnvVars(flowFile)
190194

191195
val debugOutputPath = TestDebugReporter.getDebugOutputPath()
192196

0 commit comments

Comments
 (0)