1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Fix task dependencies.

This commit is contained in:
Cedric Beust 2016-08-11 03:15:12 -08:00
parent c82f044bd3
commit c125f45eda
2 changed files with 16 additions and 4 deletions

View file

@ -92,6 +92,13 @@ class TaskManagerTest : BaseTest() {
fun exampleInTheDocTest() {
// KobaltLogger.LOG_LEVEL = 3
runTasks(listOf("clean"),
runAfter = TreeMultimap.create<String, String>().apply {
put("clean", "compile")
}).let { runTasks ->
assertThat(runTasks).isEqualTo(listOf("clean"))
}
runTasks(listOf("assemble"),
dependsOn = TreeMultimap.create<String, String>().apply {
put("assemble", "compile")
@ -138,7 +145,7 @@ class TaskManagerTest : BaseTest() {
runBefore = TreeMultimap.create<String, String>().apply {
put("compile", "example")
}).let { runTasks ->
assertThat(runTasks).isEqualTo(listOf("clean", "compile", "example"))
assertThat(runTasks).isEqualTo(listOf("clean", "compile"))
}
runTasks(listOf("compile", "example"),