ExampleTester

mill.testkit.ExampleTester
See theExampleTester companion object
class ExampleTester(val daemonMode: Boolean, val workspaceSourcePath: Path, millExecutable: Path, bashExecutable: String, val baseWorkspacePath: Path, val propagateJavaHome: Boolean, val cleanupProcessIdFile: Boolean) extends IntegrationTesterBase

Attributes

Companion
object
Source
ExampleTester.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def globMatches(expected: String, line: String): Boolean

Attributes

Source
ExampleTester.scala
def globMatchesAny(expected: String, filtered: String): Boolean

Attributes

Source
ExampleTester.scala
def processCommand(expectedSnippets: Vector[String], commandStr0: String, check: Boolean): Unit

Attributes

Source
ExampleTester.scala
def processCommandBlock(commandBlock: String): Unit

Attributes

Source
ExampleTester.scala
def run(): Unit

Attributes

Source
ExampleTester.scala
def validateEval(expectedSnippets: Vector[String], evalResult: EvalResult, check: Boolean, command: String): Unit

Attributes

Source
ExampleTester.scala

Inherited methods

def initWorkspace(): Unit

Initializes the workspace in preparation for integration testing

Initializes the workspace in preparation for integration testing

Attributes

Inherited from:
IntegrationTesterBase
Source
IntegrationTesterBase.scala
def millTestSuiteEnv: Map[String, String]

Attributes

Inherited from:
IntegrationTesterBase
Source
IntegrationTesterBase.scala
def removeProcessIdFile(): Unit

Remove any ID files to try and force them to exit

Remove any ID files to try and force them to exit

Attributes

Inherited from:
IntegrationTesterBase
Source
IntegrationTesterBase.scala

Concrete fields

val baseWorkspacePath: Path

Attributes

Source
ExampleTester.scala
val cleanupProcessIdFile: Boolean

Attributes

Source
ExampleTester.scala
val daemonMode: Boolean

Attributes

Source
ExampleTester.scala
val propagateJavaHome: Boolean

Attributes

Source
ExampleTester.scala

Attributes

Source
ExampleTester.scala

Inherited fields

val workspacePath: Path

The working directory of the integration test suite, which is the root of the Mill build being tested. Contains the build.mill file, any application code, and the out/ folder containing the build output

The working directory of the integration test suite, which is the root of the Mill build being tested. Contains the build.mill file, any application code, and the out/ folder containing the build output

Each integration test that runs in the same baseWorkspacePath is given a new folder for isolation purposes; even though we try our best to clean up the processes and files from each Mill run, it still doesn't work 100%, and re-using the same folder can cause non-deterministic interference and flakiness

Attributes

Inherited from:
IntegrationTesterBase
Source
IntegrationTesterBase.scala