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

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

There is a newer version: 0.12.0-RC2-17-07e173
Show newest version
package mill.testkit

import os.Path

trait IntegrationTestSuite {
  protected def workspaceSourcePath: os.Path
  protected def clientServerMode: Boolean

  protected def millExecutable: Path

  def debugLog: Boolean = false
  def integrationTest[T](t: IntegrationTester => T): T = {
    val tester = new IntegrationTester(
      clientServerMode,
      workspaceSourcePath,
      millExecutable,
      debugLog,
      baseWorkspacePath = os.pwd
    )
    try t(tester)
    finally tester.close()
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy