Skip to content

Commit 0dff27b

Browse files
1.0.5: Check if run folder exists in JUnit extension
1 parent 4701130 commit 0dff27b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ org.gradle.parallel=true
66
# Project Details
77
project_group=de.florianmichael.baseproject
88
project_name=BaseProject
9-
project_version=1.0.4
9+
project_version=1.0.5
1010
project_description=A Gradle convention plugin for streamlined project setup and publishing.

src/main/kotlin/de/florianmichael/baseproject/JUnit.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ fun Project.configureTestTasks(condition: Boolean = true) {
3434
testLogging {
3535
events("passed", "skipped", "failed")
3636
}
37-
workingDir = file("run")
37+
if (file("run").exists()) {
38+
workingDir = file("run")
39+
}
3840
maxParallelForks = Runtime.getRuntime().availableProcessors()
3941
}
4042
}

0 commit comments

Comments
 (0)