0.1.2 • Published 3 years ago
@rat.md/zora-reporter v0.1.2
@RAT - Zora Reporter
A custom TAP (Test Anything Protocol) reporter for the JavaScript test runner zora, especially designed for the testing environment of our own rat and tail products.
Installation
- Requires node.js 14.13.0 or above
- Tested with Zora 4.0 and above only
npm install --save-dev @rat.md/zora-reporter
yarn add --dev @rat.md/zora-reporter
Usage
const { reporter } = require('@rat.md/zora-reporter');
const { createHarness } = require('zora');
const harness = createHarness();
const { test } = harness;
test('Define your tests here', t => {
t.equal(1, 1);
});
harness.report(reporter()).then(() => { });
Configuration
const { reporter } = require('@rat.md/zora-reporter');
const { createHarness } = require('zora');
const harness = createHarness();
const { test } = harness;
test('Define your tests here', t => {
t.equal(1, 1);
});
harness.report(reporter({
break: false, // Break | Continue on Failure
intro: true, // Show | Hide Intro
summary: true // Show | Hide Summary
})).then(() => { });
CLI Configuration
node tests/index.js -- <args>
<args>:
--break Break on Failure
--no-break Continue on Failure
--intro Show rat Intro
--no-intro Hide rat Intro
--summary Show Summary
--no-summary Hide Summary
Copyright & License
Written by SamBrishes (sam@pytes.net) and Lenivyy (lenivyy@pytes.net).
Published under the MIT license, Copyright © 2020 - 2021 pytesNET.