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.2-55-2482ce
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