All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mill.testkit.TestBaseModule.scala Maven / Gradle / Ivy

There is a newer version: 0.12.0-RC2-17-07e173
Show newest version
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[this.type] = Discover[this.type]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy