Framework

utest.runner.Framework
See theFramework companion object
class Framework extends Framework, Formatter

Attributes

Companion
object
Graph
Supertypes
trait Formatter
trait Framework
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

def failureHeader: String
final def fingerprints(): Array[Fingerprint]
def name(): String
def resultsHeader: String
final def runner(args: Array[String], remoteArgs: Array[String], testClassLoader: ClassLoader): Runner
def setup(): Unit

Override to run code before tests start running. Useful for setting up global databases, initializing caches, etc.

Override to run code before tests start running. Useful for setting up global databases, initializing caches, etc.

Attributes

How many tests need to run before uTest starts printing out the test results summary and test failure summary at the end of a test run. For small sets of tests, these aren't necessary since all the output fits nicely on one screen; only when the number of tests gets large and their output gets noisy does it become valuable to show the clean summaries at the end of the test run.

How many tests need to run before uTest starts printing out the test results summary and test failure summary at the end of a test run. For small sets of tests, these aren't necessary since all the output fits nicely on one screen; only when the number of tests gets large and their output gets noisy does it become valuable to show the clean summaries at the end of the test run.

Attributes

final def slaveRunner(args: Array[String], remoteArgs: Array[String], testClassLoader: ClassLoader, send: String => Unit): ScalaJsSlaveRunner
def startHeader(path: String): String
def teardown(): Unit

Override to run code after tests finish running. Useful for shutting down daemon processes, closing network connections, etc.

Override to run code after tests finish running. Useful for shutting down daemon processes, closing network connections, etc.

Attributes

def useSbtLoggers: Boolean

Whether to use SBT's test-logging infrastructure, or just println.

Whether to use SBT's test-logging infrastructure, or just println.

Defaults to println because SBT's test logging doesn't seem to give us anything that we want, and does annoying things like making a left-hand gutter and buffering input by default

Attributes

Inherited methods

def assertPrettyPrinter(x: Any, height: Int): Str

Override this to customize how values are written to the console during assert errors

Override this to customize how values are written to the console during assert errors

Attributes

Inherited from:
Formatter

Attributes

Inherited from:
Formatter

Attributes

Inherited from:
Formatter

Attributes

Inherited from:
Formatter

Attributes

Inherited from:
Formatter

Attributes

Inherited from:
Formatter

Attributes

Inherited from:
Formatter
def exceptionStackFrameHighlighter(s: StackTraceElement): Boolean

Attributes

Inherited from:
Formatter
def formatColor: Boolean

Attributes

Inherited from:
Formatter
def formatException(x: Throwable, leftIndent: String): Str

Attributes

Inherited from:
Formatter
def formatIcon(success: Boolean): Str

Attributes

Inherited from:
Formatter

Attributes

Inherited from:
Formatter
def formatResultColor(success: Boolean): Attrs

Attributes

Inherited from:
Formatter
def formatSingle(path: Seq[String], r: Result): Option[Str]

Attributes

Inherited from:
Formatter
def formatSummary(topLevelName: String, results: HTree[String, Result]): Option[Str]

Attributes

Inherited from:
Formatter

Attributes

Inherited from:
Formatter
def formatValue(x: Any): Str

Attributes

Inherited from:
Formatter
def formatWrapWidth: Int

Attributes

Inherited from:
Formatter
def goldenLiteralPrinter(x: Any): String

Override this to customize how values are written to source files during assertGoldenLiteral updates

Override this to customize how values are written to source files during assertGoldenLiteral updates

Attributes

Inherited from:
Formatter
def joinLineStr(lines: Seq[Str], leftIndent: String): Str

Attributes

Inherited from:
Formatter
def lineWrapInput(input: Str, leftIndent: String): Seq[Str]

Attributes

Inherited from:
Formatter

Attributes

Inherited from:
Formatter

Attributes

Inherited from:
Formatter
def wrapLabel(leftIndentCount: Int, r: Result, label: String): Str

Attributes

Inherited from:
Formatter