npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

playwright-cucumber-ctrf-generator

v1.0.18

Published

Convert Cucumber JSON reports into CTRF Markdown reports for Playwright

Downloads

19

Readme

Playwright Cucumber JSON CTRF Generator (Beta)

Playwright CTRF Logo

Playwright Cucumber JSON CTRF Generator is a command-line tool that converts Cucumber JSON reports into a clean, readable Markdown test report. It is particularly useful for projects using Playwright, Cucumber, or similar testing frameworks to generate structured test summaries.


📢 Beta Notice

This package is currently in Beta stage. While it is functional, there may be minor issues or improvements required.


Features 🚀

  • 📊 Summary at the Top: View total scenarios, passed, failed, and skipped counts immediately.
  • Readable Reports: Generates human-friendly Markdown reports from Cucumber JSON output.
  • 🛠️ Easy Integration: Works seamlessly with Playwright and Cucumber frameworks.

How to use?

  1. Install the package:

    npm install playwright-cucumber-ctrf-generator
  2. Add the script in your package.json:

    "scripts": {
        "generate:ctrf": "cucumber-ctrf-generator ./test-result/cucumber-report/cucumber-report.json ctrf-report.md"
    }

    Make sure your cucumber-report.json file is specified correctly.

  3. Integrate in GitHub Workflow: Below is an example of a GitHub Actions workflow file for Playwright tests:

    name: Playwright Tests
    on:
      workflow_dispatch:
    
    jobs:
      test:
        timeout-minutes: 60
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v4
          - uses: actions/setup-node@v4
            with:
              node-version: lts/*
          - name: Install dependencies
            run: npm ci
    
          - name: Install Playwright Browsers
            run: npx playwright install --with-deps
    
          - name: Start Test Execution Timer
            id: start_time
            run: echo "start_time=$(date +%s)" >> $GITHUB_ENV
    
          - name: Run Playwright Cucumber tests
            run: |
              npm run execute:tests
              if grep -q '"status": "failed"' test-result/cucumber-report/cucumber-report.json; then
                echo "Cucumber scenarios failed."
                exit 1
              fi
    
          - name: Calculate Total Test Duration
            if: ${{ always() }}
            id: end_time
            run: |
              end_time=$(date +%s)
              duration=$((end_time - $start_time))
              echo "total_duration=${duration}" >> $GITHUB_ENV
              echo "Total Test Duration: $((duration / 60))m $((duration % 60))s"
    
          - name: Upload Playwright Cucumber Report
            if: ${{ always() }}
            uses: actions/upload-artifact@v4
            with:
              name: Cucumber Reports
              path: test-result/cucumber-report
              retention-days: 30
    
          - name: Generate CTRF Report
            if: ${{ always() }}
            run: |
              npm run generate:ctrf
    
          - name: Add CTRF Report to GitHub Actions Summary
            if: ${{ always() }}
            run: |
              echo "## ⏰ Total Execution Duration : $((total_duration / 60))m $((total_duration % 60))s" >> $GITHUB_STEP_SUMMARY
              cat ./ctrf-report.md >> $GITHUB_STEP_SUMMARY

Sample Report in GitHub Actions

Here is a sample screenshot of the generated report:


Now you can effortlessly generate clean and readable reports for your Playwright Cucumber projects! 🎉