maestro.orchestra.WorkspaceConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maestro-orchestra-models Show documentation
Show all versions of maestro-orchestra-models Show documentation
Maestro is a server-driven platform-agnostic library that allows to drive tests for both iOS and Android using the same implementation through an intuitive API.
The newest version!
package maestro.orchestra
import com.fasterxml.jackson.annotation.JsonAnySetter
import com.fasterxml.jackson.annotation.JsonCreator
data class WorkspaceConfig(
val flows: StringList? = null,
val includeTags: StringList? = null,
val excludeTags: StringList? = null,
val local: Local? = null,
val executionOrder: ExecutionOrder? = null
) {
@JsonAnySetter
fun setOtherField(key: String, other: Any?) {
// Do nothing
}
@Deprecated("Use ExecutionOrder instead")
data class Local(
val deterministicOrder: Boolean? = null,
)
data class ExecutionOrder(
val continueOnFailure: Boolean? = true,
val flowsOrder: List = emptyList()
)
class StringList : ArrayList() {
companion object {
@Suppress("unused")
@JvmStatic
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
fun parse(string: String): StringList {
return StringList().apply {
add(string)
}
}
}
}
}