True 6.1.0

Reporting Results

@mixin report()

Report results summary to CSS and (optionally) the command line

Parameters

$terminal: $terminal-output (bool)

Optionally output results to the terminal

$fail-on-error: false (bool)

Optionally error out the compiler if tests have failed

$results: $results (map)

A map of run, pass, fail, and output-to-css results

$stats: $stats (map)

A map of module, test, and assertion statistics

Example

scss
true.$terminal-output: false;
@include true.report;
css compiled
/* # SUMMARY ---------- */
/* 0 Tests: */
/* - 0 Passed */
/* - 0 Failed */
/* Stats: */
/* - 0 Modules */
/* - 0 Tests */
/* - 0 Assertions */
/* -------------------- */

Requires

@function report-message() [private]

@function error()

$results (Map) [private]

$output (bool) [private]

$stats (Map<String: Number>) [private]