@alex_neo/playwright-nyan-reporter
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

@alex_neo/playwright-nyan-reporter

GitHub npm (scoped) npm npm

Nyan reporter for Playwright Test

Nyan Cat

Description

This project provides a Nyan Cat-themed reporter for Playwright Test. It visually represents test results in a fun and colorful way.

Installation

To install the reporter, run:

npm install @alex_neo/playwright-nyan-reporter

Usage

To use the Nyan reporter in your Playwright tests, configure it in your playwright.config.ts file:

Usage

To use the Nyan reporter in your Playwright tests, configure it in your playwright.config.ts file:

import type { PlaywrightTestConfig } from '@playwright/test';
import { NyanReporterOptions } from '@alex_neo/playwright-nyan-reporter/dist';

const config: PlaywrightTestConfig = {
  testDir: './tests',
  timeout: 30 * 1000,
  expect: {
    timeout: 5000,
  },
  fullyParallel: true,
  forbidOnly: !!process.env.CI,
  retries: process.env.CI ? 2 : 0,
  workers: '50%',
  reporter: [
    [
      '@alex_neo/playwright-nyan-reporter',
      {
        suppressErrorReporter: true,
        renderOnRunCompletely: false,
      } as NyanReporterOptions,
    ],
  ],
  use: {
    actionTimeout: 0,
    trace: 'on-first-retry',
  },
};

export default config;

Options

The Nyan reporter supports the following options:

  • suppressErrorReporter: (boolean) Suppresses error reporting if set to true. Default is true.
  • renderOnRunCompletely: (boolean) Renders the reporter output completely on run. Default is false.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

Acknowledgements

This project is inspired by the Nyan Cat reporter for Mocha.


Enjoy your colorful test results with the Nyan reporter! 😺🌈

Package Sidebar

Install

npm i @alex_neo/playwright-nyan-reporter

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

110 kB

Total Files

29

Last publish

Collaborators

  • alex_neo