UnitTester

mill.testkit.UnitTester
See theUnitTester companion object
class UnitTester(module: TestRootModule, sourceRoot: Option[Path], resetSourcePath: Boolean, failFast: Boolean, threads: Option[Int], outStream: PrintStream, errStream: PrintStream, inStream: InputStream, debugEnabled: Boolean, env: Map[String, String], offline: Boolean)(using fullName: FullName) extends AutoCloseable

Value parameters

failFast

failFast mode enabled

module

The module under test

threads

explicitly used nr. of parallel threads

Attributes

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

Members list

Type members

Classlikes

object logger extends PromptLogger

Attributes

Source
UnitTester.scala
Supertypes
trait AutoCloseable
trait Logger
trait Actions
class Object
trait Matchable
class Any
Show all
Self type
UnitTester.this.UnitTester.this.logger.type

Value members

Concrete methods

def apply(args: String*): Either[Failing[_], Result[Seq[_]]]

Attributes

Source
UnitTester.scala
def apply[T](task: Task[T]): Either[Failing[T], Result[T]]

Attributes

Source
UnitTester.scala
def apply(tasks: Seq[Task[_]]): Either[Failing[_], Result[Seq[_]]]

Attributes

Source
UnitTester.scala
def check(tasks: Seq[Task[_]], expected: Seq[Task[_]]): Unit

Attributes

Source
UnitTester.scala
def checkLeaks(): Unit

Attributes

Source
UnitTester.scala
def close(): Unit

Attributes

Source
UnitTester.scala

Attributes

Source
UnitTester.scala
def fail(task: Simple[_], expectedFailCount: Int, expectedRawValues: Seq[ExecResult[_]]): Unit

Attributes

Source
UnitTester.scala
def scoped[T](tester: UnitTester => T): T

Replaces the BuildCtx.workspaceRoot for the given scope with module.moduleDir.

Replaces the BuildCtx.workspaceRoot for the given scope with module.moduleDir.

Attributes

Source
UnitTester.scala

Concrete fields

val ec: Option[ThreadPoolExecutor]

Attributes

Source
UnitTester.scala

Attributes

Source
UnitTester.scala

Attributes

Source
UnitTester.scala
val execution: Execution

Attributes

Source
UnitTester.scala
val outPath: Path

Attributes

Source
UnitTester.scala