Nyan reporter for Playwright Test
This project provides a Nyan Cat-themed reporter for Playwright Test. It visually represents test results in a fun and colorful way.
To install the reporter, run:
npm install @alex_neo/playwright-nyan-reporter
To use the Nyan reporter in your Playwright tests, configure it in your playwright.config.ts file:
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;
The Nyan reporter supports the following options:
-
suppressErrorReporter
: (boolean) Suppresses error reporting if set totrue
. Default istrue
. -
renderOnRunCompletely
: (boolean) Renders the reporter output completely on run. Default isfalse
.
This project is licensed under the MIT License. See the LICENSE
file for details.
Contributions are welcome! Please open an issue or submit a pull request.
This project is inspired by the Nyan Cat reporter for Mocha.
Enjoy your colorful test results with the Nyan reporter! 😺🌈