blob: 67b6dc3c6bc200ecf79b2d0ee6bb0184f54e5a71 (
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
|
package mill.define
import mill.util.TestGraphs
import utest._
import ammonite.ops.pwd
object BasePathTests extends TestSuite{
val testGraphs = new TestGraphs
val tests = Tests{
'singleton - {
assert(
testGraphs.singleton.millModuleBasePath ==
BasePath(pwd / "mill.util.TestGraphs#singleton" / "singleton")
)
}
'separateGroups - {
assert(
TestGraphs.separateGroups.millModuleBasePath ==
BasePath(pwd / "mill.util.TestGraphs.separateGroups" / "separateGroups")
)
}
'TraitWithModuleObject - {
assert(
TestGraphs.TraitWithModuleObject.TraitModule.millModuleBasePath ==
BasePath(pwd / "mill.util.TestGraphs.TraitWithModuleObject" / "TraitWithModuleObject" / "TraitModule")
)
}
'nestedModuleNested - {
assert(
TestGraphs.nestedModule.nested.millModuleBasePath ==
BasePath(pwd / "mill.util.TestGraphs.nestedModule" / "nestedModule" / "nested")
)
}
'nestedModuleInstance - {
assert(
TestGraphs.nestedModule.classInstance.millModuleBasePath ==
BasePath(pwd / "mill.util.TestGraphs.nestedModule" / "nestedModule" / "classInstance")
)
}
}
}
|