File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
main/define/test/src/mill/define Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,17 @@ import mill.testkit.TestBaseModule
55import utest ._
66
77object BasePathTests extends TestSuite {
8+
9+ object overriddenBasePath extends TestBaseModule {
10+ override def millSourcePath = os.pwd / " overriddenBasePathRootValue"
11+ object nested extends Module {
12+ override def millSourcePath = super .millSourcePath / " overriddenBasePathNested"
13+ object nested extends Module {
14+ override def millSourcePath = super .millSourcePath / " overriddenBasePathDoubleNested"
15+ }
16+ }
17+ }
18+
819 val testGraphs = new TestGraphs
920 val tests = Tests {
1021 def checkMillSourcePath [T <: Module ](m : T )(f : T => Module , segments : String * ): Unit = {
@@ -54,15 +65,6 @@ object BasePathTests extends TestSuite {
5465 checkMillSourcePath(TestGraphs .nestedCrosses)(_.cross(" 210" ).cross2(" js" ), " cross" , " cross2" )
5566 }
5667 test(" overridden" ) {
57- object overriddenBasePath extends TestBaseModule {
58- override def millSourcePath = os.pwd / " overriddenBasePathRootValue"
59- object nested extends Module {
60- override def millSourcePath = super .millSourcePath / " overriddenBasePathNested"
61- object nested extends Module {
62- override def millSourcePath = super .millSourcePath / " overriddenBasePathDoubleNested"
63- }
64- }
65- }
6668 assert(
6769 overriddenBasePath.millSourcePath == os.pwd / " overriddenBasePathRootValue" ,
6870 overriddenBasePath.nested.millSourcePath == os.pwd / " overriddenBasePathRootValue/nested/overriddenBasePathNested" ,
You can’t perform that action at this time.
0 commit comments