@rat.md/zora-reporter

A custom Zora Tap Reporter extension, especially designed for the development of our rat products.

Usage no npm install needed!

<script type="module">
  import ratMdZoraReporter from 'https://cdn.skypack.dev/@rat.md/zora-reporter';
</script>

README

@RAT - Zora Reporter

Minfied Size Version Downloads Support

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.

Zora Preview

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.