Skip to content

Commit ffcac9b

Browse files
committed
chore(gradle): fix integrationTest & utilize check
Now test will only run the unit tests, while check and its depender build still execute integration tests as well. Build also deploys again as described in the README.
1 parent 7c67744 commit ffcac9b

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ Die wichtigsten Tasks:
3434
| Task | Beschreibung
3535
| ------ | ------------
3636
| `build` | Baut alles, deployt und testet
37-
| `test` | Führt Tests aus
37+
| `test` | Führt Unittests aus
38+
| `check` | Führt alle Tests aus
3839
| `deploy` | Erstellt hochladbare ZIP-Pakete
3940
| `integrationTest` | Testet ein komplettes Spiel sowie den TestClient
4041
| `startServer` oder `:server:run` | Führt den Server direkt vom Quellcode aus

gradle/build.gradle.kts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,20 +194,26 @@ tasks {
194194

195195
val integrationTest by creating {
196196
group = mainGroup
197+
dependsOn(testGame, testTestClient)
198+
shouldRunAfter(test)
197199
}
198200

199201
clean {
200-
dependOnSubprojects()
201202
group = mainGroup
203+
dependOnSubprojects()
202204
}
203205
test {
206+
group = mainGroup
204207
dependOnSubprojects()
208+
}
209+
check {
210+
group = mainGroup
205211
if (!hasProperty("nointegration") && versionObject.minor > 0)
206212
dependsOn(integrationTest)
207-
group = mainGroup
208213
}
209214
build {
210215
group = mainGroup
216+
dependsOn(deploy)
211217
}
212218
}
213219

0 commit comments

Comments
 (0)