IntegrationTestSuite

mill.testkit.IntegrationTestSuite

Attributes

Source
IntegrationTestSuite.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

protected def daemonMode: Boolean

If true, run Mill subprocesss normally as a client to a long-lived background daemon. If false, run the Mill subprocess with --no-server so it exits after every command. Both are useful depending on what you are trying to test, and generally Mill builds are expected to behave the same in both modes (except for performance differences due to in-memory caching)

If true, run Mill subprocesss normally as a client to a long-lived background daemon. If false, run the Mill subprocess with --no-server so it exits after every command. Both are useful depending on what you are trying to test, and generally Mill builds are expected to behave the same in both modes (except for performance differences due to in-memory caching)

Attributes

Source
IntegrationTestSuite.scala
protected def millExecutable: Path

Path to the Mill executable to use to run integration tests with

Path to the Mill executable to use to run integration tests with

Attributes

Source
IntegrationTestSuite.scala
protected def workspaceSourcePath: Path

Where the project root of the Mill codebase under test is located on disk.

Where the project root of the Mill codebase under test is located on disk.

Attributes

Source
IntegrationTestSuite.scala

Concrete methods

protected def cleanupProcessIdFile: Boolean

Attributes

Source
IntegrationTestSuite.scala
def debugLog: Boolean

Attributes

Source
IntegrationTestSuite.scala
def integrationTest[T](block: IntegrationTester => T): T

Run an integration test by providing an IntegrationTester to the given block.

Run an integration test by providing an IntegrationTester to the given block.

Attributes

Source
IntegrationTestSuite.scala
protected def propagateJavaHome: Boolean

Whether to pass the java.home property from the test runner to the Mill test process as the JAVA_HOME environment variable. This is usually what you want, since it ensures the JVM version is consistent, but occasionally you may want to disable propagation because you explicitly want to test the Mill subprocess using a different JVM version

Whether to pass the java.home property from the test runner to the Mill test process as the JAVA_HOME environment variable. This is usually what you want, since it ensures the JVM version is consistent, but occasionally you may want to disable propagation because you explicitly want to test the Mill subprocess using a different JVM version

Attributes

Source
IntegrationTestSuite.scala