mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
solved problem with reversed references in graph
This commit is contained in:
parent
9436ad1b88
commit
6614bb203c
4 changed files with 28 additions and 15 deletions
|
@ -1,6 +1,7 @@
|
|||
package com.beust.kobalt.internal
|
||||
|
||||
import com.beust.kobalt.TestModule
|
||||
import com.beust.kobalt.misc.KobaltLogger
|
||||
import com.google.common.collect.ArrayListMultimap
|
||||
import com.google.common.collect.Multimap
|
||||
import com.google.common.collect.TreeMultimap
|
||||
|
@ -152,19 +153,19 @@ class TaskManagerTest @Inject constructor(val taskManager: TaskManager) {
|
|||
|
||||
@Test
|
||||
fun jacocoTest() {
|
||||
// KobaltLogger.LOG_LEVEL = 3
|
||||
val runTasks = runTasks(listOf("test"),
|
||||
dependsOn = TreeMultimap.create<String, String>().apply {
|
||||
put("coverage", "test")
|
||||
put("test", "compileTest")
|
||||
put("test", "compile")
|
||||
put("compileTest", "compile")
|
||||
},
|
||||
reverseDependsOn = TreeMultimap.create<String, String>().apply {
|
||||
put("coverage", "test")
|
||||
put("enableJacoco", "test")
|
||||
put("compileTest", "enableJacoco")
|
||||
})
|
||||
Assert.assertTrue(runTasks[0] == "coverage" && runTasks[1] == "compile"
|
||||
|| runTasks[1] == "coverage" && runTasks[0] == "compile")
|
||||
Assert.assertEquals(runTasks[2], "compileTest")
|
||||
Assert.assertEquals(runTasks[3], "test")
|
||||
Assert.assertTrue(runTasks == listOf("compile", "compileTest", "enableJacoco", "test", "coverage"))
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue