Skip to content

Quickstart: Gradle

Zero-setup path: JUnit XML

Gradle's test task writes JUnit XML by default to build/test-results/test/.

bash
./gradlew test
suluctl upload --results ./build/test-results/test

Richer path: Allure (steps + attachments)

kotlin
// build.gradle.kts
dependencies {
    testImplementation(platform("io.qameta.allure:allure-bom:2.29.1"))
    testImplementation("io.qameta.allure:allure-junit5")
}

tasks.test {
    useJUnitPlatform()
    systemProperty("allure.results.directory", layout.buildDirectory.dir("allure-results").get().asFile.path)
}
bash
./gradlew test
suluctl upload --results ./build/allure-results

Set SULU_URL / SULU_TOKEN / SULU_PROJECT_ID first (see suluctl).

Sulu Test Management System