Skip to main content

Create and Run Builds

The following mutation create and runs a build for a given test suite:

Operation: mutation CreateAndRunBuild($testSuiteId: ObjectID!, $ciBuildId: String) { createAndRunBuild(input: { testSuiteId: $testSuiteId, ciBuildId: $ciBuildId }) { build { id createdAt status } } }
CreateAndRunBuildTry in Explorer
GraphQL
mutation CreateAndRunBuild($testSuiteId: ObjectID!, $ciBuildId: String) {
createAndRunBuild(input: {
testSuiteId: $testSuiteId,
ciBuildId: $ciBuildId
}) {
build {
id
createdAt
status
}
}
}
caution
  • $testSuiteId is the only required field. $ciBuildId is an optional string that you can set to identify your CI build.
  • Build status may be still Queued immediately after running the mutation. It will change to Running after Lumar starts crawling your website.