skills17/test-result-printer
Prints test results in a nice format to the console.
Table of contents
Installation
npm install @skills17/test-result-printer
Usage
A TestRun
instance of the @skills17/test-result
package can be passed to the Printer
constructor.
import Printer from '@skills17/test-result-printer';
const printer = new Printer(testRun);
printer.print();
The result will be printed to the standard output.
Additionally, the print
method supports an optional options parameter:
{
printer?: (...data: string[]) => void;
printHeader?: boolean;
printFooter?: boolean;
}
License
MIT