blob: c3414be96a07150b91504fd100615dbdcd283bf4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
package forge
import utest._
import Target.noop
import java.nio.{file => jnio}
object ForgeTests extends TestSuite{
val evaluator = new Evaluator(
jnio.Paths.get("target/workspace"),
implicitly
)
object Singleton {
val single = noop()
}
object Pair {
val up = noop()
val down = noop(up)
}
object Diamond{
val up = noop()
val left = noop(up)
val right = noop(up)
val down = noop(left, right)
}
object AnonymousDiamond{
val up = noop()
val down = noop(noop(up), noop(up))
}
val tests = Tests{
'singleton - {
// Evaluator.labelTargets(Singleton.single)
}
'pair - {
// Evaluator.labelTargets(Pair.up, Pair.down)
}
'diamond - {
// Evaluator.labelTargets(
// Diamond.up, Diamond.left, Diamond.right, Diamond.down
// )
}
// 'full - {
// val sourceRoot = Target.path(jnio.Paths.get("src/test/resources/example/src"))
// val resourceRoot = Target.path(jnio.Paths.get("src/test/resources/example/resources"))
// val allSources = list(sourceRoot)
// val classFiles = compileAll(allSources)
// val jar = jarUp(resourceRoot, classFiles)
// Evaluator.apply(jar, jnio.Paths.get("target/workspace"))
// }
}
}
|