playwright-pumpkin-spice-reporter
v1.0.1
Published
A festive autumn-themed Playwright test reporter with pumpkin spice emojis πβ
Maintainers
Readme
π Playwright Pumpkin Spice Reporter β
A festive, autumn-themed custom reporter for Playwright Test that brings the cozy warmth of pumpkin spice season to your test results!
Inspired by the pytest-pumpkin-spice plugin, this reporter replaces boring test status indicators with delightful fall emojis and adds autumn colors to your test output.
π Features
Autumn Emojis: Test results displayed with seasonal emojis
- π PASSED - Jack-o-lantern for successful tests
- βοΈ FAILED - Snowflake for failed tests (winter is coming!)
- β SKIPPED - Pumpkin spice latte for skipped tests
- π₯§ ERROR - Pumpkin pie for errors
- π XFAIL - Falling leaves for expected failures
- π XPASS - Sweet potato for unexpected passes
- β° TIMEOUT - Clock for timed out tests
- π INTERRUPTED - Stop sign for interrupted tests
Colorful Output: Warm autumn colors including pumpkin orange, spice brown, and leaf yellow
Detailed Test Steps: Shows test steps with cozy formatting
Test Summary: Beautiful harvest-themed summary with statistics
Flaky Test Detection: Identifies flaky tests with special indicators
π¦ Installation
npm install playwright-pumpkin-spice-reporter --save-devOr with yarn:
yarn add -D playwright-pumpkin-spice-reporterπ§ Usage
Option 1: Configure in playwright.config.ts
import { defineConfig } from '@playwright/test';
export default defineConfig({
// ... other config options
reporter: 'playwright-pumpkin-spice-reporter',
});Option 2: Use via Command Line
npx playwright test --reporter=playwright-pumpkin-spice-reporterOption 3: Use Multiple Reporters
export default defineConfig({
reporter: [
['playwright-pumpkin-spice-reporter'],
['html', { outputFolder: 'playwright-report' }]
],
});π§ͺ Example Output
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π π Pumpkin Spice Test Reporter π π β
β β Fall flavored test results β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π Starting test run with 12 tests...
π PASSED π - should brew a perfect pumpkin spice latte (523ms)
ββ β
Grind the coffee beans (102ms)
ββ β
Add pumpkin spice mix (101ms)
ββ β
Steam the milk (103ms)
ββ β
Pour latte art (105ms)
π PASSED π - should serve autumn pastries (165ms)
βοΈ FAILED βοΈ - should fail when winter arrives too early (45ms)
βββ Error Details βββ
Expected: "autumn"
Received: "winter"
ββββββββββββββββββββ
β SKIPPED β - should skip preparing hot chocolate (wrong season) (0ms)
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π Autumn Test Harvest Summary π
π Passed: 8
βοΈ Failed: 2
β Skipped: 2
π Flaky: 1
β±οΈ Total time: 2.34s
π Success rate: 67%
βοΈ Some tests failed. Time to cozy up and fix them! π§£
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββποΈ Building from Source
- Clone the repository
- Install dependencies:
npm install - Build the TypeScript:
npm run build - Run example tests:
npm run test:example
π¨ Customization
The reporter uses ANSI color codes for terminal output. The color scheme includes:
- Pumpkin orange for borders and headers
- Warm browns and yellows for autumn feels
- Green for passed tests
- Red for failures
- Seasonal emojis throughout
π€ Contributing
Contributions are welcome! Feel free to:
- Add more seasonal emojis
- Enhance color schemes
- Add configuration options
- Improve test step formatting
π License
MIT License - Enjoy your testing with a side of pumpkin spice!
π Acknowledgments
- Inspired by pytest-pumpkin-spice
- Built for the Playwright Test framework
- Created with love during pumpkin spice season π
May your tests be as delightful as a warm pumpkin spice latte on a crisp autumn morning! βπ
