Skip to content

Commit

Permalink
Clean report dir before running tests to avoid test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Nov 27, 2024
1 parent 7a11032 commit 58c09e1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions documentation/documentation.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import junitbuild.javadoc.ModuleSpecificJavadocFileOption
import org.asciidoctor.gradle.base.AsciidoctorAttributeProvider
import org.asciidoctor.gradle.jvm.AbstractAsciidoctorTask
import org.gradle.api.tasks.PathSensitivity.RELATIVE
import java.nio.file.Files
import org.jetbrains.kotlin.incremental.deleteRecursivelyOrThrow

plugins {
alias(libs.plugins.asciidoctorConvert)
Expand Down Expand Up @@ -165,9 +165,7 @@ tasks {
args.addAll("--exclude-tag", "timeout")

doFirst {
consoleLauncherTestEventXmlFiles.files.forEach {
Files.delete(it.toPath())
}
consoleLauncherTestReportsDir.get().asFile.deleteRecursivelyOrThrow()
}

finalizedBy(generateOpenTestHtmlReport)
Expand Down

0 comments on commit 58c09e1

Please sign in to comment.