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

Fix the task ordering bug.

This commit is contained in:
Cedric Beust 2016-07-11 02:34:43 -08:00
parent 699d9e99e7
commit e99c277700
2 changed files with 20 additions and 0 deletions

View file

@ -101,4 +101,14 @@ class BuildOrderTest @Inject constructor(val taskManager: TaskManager) {
}
}
@Test
fun shouldBuildInRightOrder3() {
val p1 = project { name = "p1" }
val expectedTasks = listOf("p1:run", "p1:exec")
with(taskManager) {
with(calculateDependentTaskNames(listOf("run", "exec"), listOf(p1))) {
assertThat(this.map { it.id }).isEqualTo(expectedTasks)
}
}
}
}