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 🙏

© 2024 – Pkg Stats / Ryan Hefner

ortoni-report

v2.0.8

Published

Playwright Report By LetCode with Koushik

Downloads

4,525

Readme

Ortoni Report by Koushik (LetCode with Koushik)

Welcome to Ortoni Report, a comprehensive and visually appealing HTML report generator tailored for Playwright tests. Designed with powerful features and customizable options, Ortoni Report simplifies the process of reviewing and managing test results, making test reporting more intuitive and accessible.

Live Demo: Ortoni Report

Ortoni Report Preview


Key Features

  1. Hierarchical Grouping

    • Tests are structured and grouped by filename, suite, and project, providing a clear and organized view of the entire test execution.
  2. Test History & Detailed Breakdown

    • Added support for displaying test history up to the last 10 executions, providing better insight into recent test performance.
    • Each suite displays tests categorized by project, with organized test results for better navigation.
  3. Comprehensive Test Details

    • Rich details include test status (passed, failed, skipped), duration, tags, errors, logs, annotations, screenshots, videos, and trace data.
    • Users can sort and filter tests by suite, project, or script for more focused insights.
  4. Summary Statistics

    • Overview displays total tests, passed, failed, skipped, and flaky tests, with a success rate calculation for each suite.
  5. Chart Visualizations

    • Visualize test result distributions using:
      • Doughnut Chart: Illustrates overall test result status (passed, failed, skipped, flaky).
      • Doughnut & Bar Charts: Breakdown of results per project (Chromium, Firefox, etc.) for easy comparison.
  6. Advanced Search and Reset

    • Search and filter tests quickly using specific keywords or criteria. Easily reset filters to display all tests again.
  7. Customization & Themes

    • Personalize reports with project details, author name, test type, and toggle between light and dark themes.
    • Flexibility to choose between Base64 images or file paths for screenshots.
    • Customize report filenames and folder paths.
  8. Test Attachments

    • Screenshots
    • Videos
    • Trace viewer
    • Steps
    • Error stack trace
    • Console logs
    • Tests History
  9. Integration and Configuration

    • Easily configure and integrate with Playwright using TypeScript/JavaScript.
    • Configure reporting preferences within the Playwright setup for quick customization.
  10. Add Your Logo

    • Include your branding by adding a relative or absolute path to the config for a custom logo in the report.
  11. Share Reports

    • Generated reports are self-contained and ready to share right away, making it easier to distribute and review.
  12. Advanced Filtering

    • Apply filters based on project, tags, and test status simultaneously for precise reporting. See only the relevant tests.
  13. Colorful and Intuitive Dashboard

    • Vibrant, intuitive color schemes enhance the dashboard’s visual appeal, improving clarity for quick test status assessment.
  14. Selected Status Display

    • The UI now clearly displays the selected status filter, helping users keep track of the current filter criteria.
  15. Hide Skipped Tests by Default

    • By default, skipped tests are hidden when using the "All Tests" filter, allowing for a more focused review of relevant test cases.

Installation & Setup

Step 1: Install Ortoni Report

Run the following command to install the ortoni-report package globally:

npm install -d ortoni-report

Step 2: Configure in playwright.config.ts

Set up Ortoni Report in your Playwright configuration file with the following example:

import { defineConfig } from "@playwright/test";
import { OrtoniReportConfig } from "ortoni-report";

const reportConfig: OrtoniReportConfig = {
  open: process.env.CI ? "never" : "always",
  folderPath: "report-db",
  filename: "index.html",
  title: "Ortoni Test Report",
  showProject: !true,
  projectName: "Ortoni-Report",
  testType: "Release - Nov 09, 2024",
  authorName: "Koushik (LetCode with Koushik)",
  base64Image: false,
  stdIO: false,
  preferredTheme: "light"
};

export default defineConfig({
  reporter: [["ortoni-report", reportConfig]],
  // Other Playwright configurations
});

Configure in playwright.config.js

import { defineConfig } from "@playwright/test";

const reportConfig = {
  open: process.env.CI ? "never" : "always",
  folderPath: "report-db",
  filename: "index.html",
  title: "Ortoni Test Report",
  showProject: !true,
  projectName: "Ortoni-Report",
  testType: "Release - Nov 09, 2024",
  authorName: "Koushik (LetCode with Koushik)",
  base64Image: false,
  stdIO: false,
  preferredTheme: "light"
};

export default defineConfig({
  reporter: [["ortoni-report", reportConfig]],
  // Other Playwright configurations
});

Detailed Test Information

  • Rich Test Data: Each test includes details such as title, status, duration, tags, errors, steps, logs, video, and screenshots.
  • Color-Coded Status: Green for passed, red for failed, yellow for skipped—offering a quick overview of test outcomes.
  • Static HTML Report: Self-contained, standalone HTML files make sharing and storing reports convenient.
  • Test History: Added support for displaying test history up to the last 10 executions, providing better insight into recent test performance.

Changelog

Stay up-to-date with the latest features, improvements, and bug fixes by reviewing the Changelog.


License

This project is licensed under the terms of the LICENSE.


Feedback and Contributions

We encourage you to share feedback and contribute to improving Ortoni Report! For issues, suggestions, or contributions, please visit our GitHub repository.


Support

If you'd like to support this project, you can donate via UPI:

UPI: ortoni@axl (Koushik Chatterjee) Buy me coffee Paypal


Thank you for using Ortoni Report! We’re committed to providing you with a superior Playwright testing experience.


LetCode with Koushik