mill.testkit.TestBaseModule.scala Maven / Gradle / Ivy
package mill.testkit
import mill.define.{Caller, Discover}
/**
* A wrapper of [[mill.define.BaseModule]] meant for easy instantiation in test suites.
*/
class TestBaseModule(implicit
millModuleEnclosing0: sourcecode.Enclosing,
millModuleLine0: sourcecode.Line,
millModuleFile0: sourcecode.File
) extends mill.define.BaseModule(
{
os.makeDir.all(os.pwd / "out/mill-test-base-module")
os.temp.dir(os.pwd / "out/mill-test-base-module", deleteOnExit = false)
}
)(
millModuleEnclosing0,
millModuleLine0,
millModuleFile0,
Caller(null)
) {
lazy val millDiscover: Discover = Discover[this.type]
}