API Reference
TestRunSummary
The end of a test run, for the scrollback: a table of results grouped by file with a totals row (the file's status is the row's colour signal), the failures as in the live view, and a closing line with the outcome and the totals.
Inheritance
- Object
- TestRunSummary
Usage
Explore 8 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 4
- Extension method TestRunSummary.WithMaxFailures
- Extension method TestRunSummary.WithShowFailures
- Method TestRunSummaryFluent.WithMaxFailures
- Method TestRunSummaryFluent.WithShowFailures
Accepted by parameters 4
- Extension method TestRunSummary.WithMaxFailures
- Extension method TestRunSummary.WithShowFailures
- Method TestRunSummaryFluent.WithMaxFailures
- Method TestRunSummaryFluent.WithShowFailures
Constructors
public TestRunSummary(TestRunSnapshot snapshot) #Creates the summary of a snapshot.
Parameters
- snapshot ConsoleMonster.TestRuns.TestRunSnapshot
- The snapshot (usually taken after the run finished).
Methods
public Size Measure(Constraints constraints, RenderContext context) #SizeReturns the size the widget wants within the constraints.
Parameters
- constraints ConsoleMonster.Layout.Constraints
- The space offered.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.
Returns
The desired size, never larger than the constraints.
public Void Render(Region region, RenderContext context) #VoidRenders into a region. The region may be smaller or larger than the measured size.
Parameters
- region ConsoleMonster.Canvas.Region
- The target region.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
Extension Methods
public static TestRunSummary WithMaxFailures(TestRunSummary testRunSummary, Int32 value) #TestRunSummarySets TestRunSummary.MaxFailures: The most failures listed (default 20); the rest are counted.
Parameters
- testRunSummary ConsoleMonster.TestRuns.TestRunSummary
- The instance.
- value System.Int32
- The value.
Returns
The same instance.
public static TestRunSummary WithShowFailures(TestRunSummary testRunSummary, Boolean value = true) #TestRunSummarySets TestRunSummary.ShowFailures: Whether the failures are listed (default true); off when the test framework already printed them.
Parameters
- testRunSummary ConsoleMonster.TestRuns.TestRunSummary
- The instance.
- value System.Boolean = true
- The value (default true).
Returns
The same instance.