True 4.0.0

@mixin report()

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

Parameters

$terminal: $true-terminal-output (bool)

Optionally output results to the terminal

$fail-on-error: false (bool)

Optionally error out the compiler if tests have failed

$results: $_true-results (map)

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

$stats: $_true-stats (map)

A map of module, test, and assertion statistics

Example

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

Requires

@mixin _true-message() [private]

@mixin _true-error() [private]

@function _true-report-message() [private]

$true-terminal-output (bool)

scss
$true-terminal-output: true !default;

While Mocha always reports to the terminal, this setting allows you to get terminal reports even when compiling True manually with Sass.