Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Playwright Custom HTML Report - Build & Release NPM package
6 students

Playwright Custom HTML Report - Build & Release NPM package

playwright, npm
Last updated 3/2025
English

What you'll learn

  • Build and Publish an NPM Package – Learn how to create, configure, and release an npm package using TypeScript and tsup.
  • Leverage Playwright for Custom HTML Reports – Utilize Playwright’s reporting features to generate detailed HTML test reports.
  • Design and Enhance Test Reports with Handlebars.js – Build a dynamic UI to display test results using Handlebars and vanilla JavaScript.
  • Automate and Streamline the Release Process – Understand versioning, packaging, and publishing best practices for a smooth npm release.

Course content

5 sections • 14 lectures • 4h 8m total length
  • Introduction11:18

    Understanding npm Packages:
    A Beginner's Guide In this video, we dive into the basics of npm packages, the building blocks of modern JavaScript development. Whether you're new to web development or just getting started with Node.js, this guide will help you understand what npm packages are, how they work, and why they're essential for your projects.

    ? Topics Covered:

    1. What is an npm package?

    2. The key components of an npm package (package.json, source code, dependencies, README, etc.)

    3. Different types of npm packages (public, private, and local)

    4. How to install and use npm packages in your projects

    5. Versioning and publishing your own npm packages


      ? By the end of this video, you'll have a solid understanding of npm packages and how to leverage them to speed up your development process.

  • Project setup with tsup21:12

    In this tutorial, I dive into the world of TypeScript bundling using tsup.

    Learn how to configure tsup for your TypeScript projects, including generating .d.ts declaration files to provide robust type definitions for TypeScript consumers.

    This video covers everything from setting up your tsup config file to understanding the significance of the dts option. Whether you're building a library or a standalone project, this guide will help you ensure compatibility across different environments with both CommonJS and ESM formats. Perfect for developers looking to enhance their TypeScript workflows!

  • How to utilize Playwright Reporter?18:42

Requirements

  • Basic JS/TS knowledge
  • familiarity with Playwright (Optional)

Description

Master NPM Package Development and Playwright Custom Reports

Are you a Test Automation Engineer or a JavaScript/TypeScript Developer looking to build and publish your own npm package? Do you want to customize Playwright test reports and make them visually insightful? If so, this course is for you!

In this hands-on course, you’ll learn how to build, package, and release an npm library while using Playwright’s custom HTML reporting as a real-world example. Whether you're an automation tester looking to enhance your reports or a developer aiming to publish your first npm package, this course provides practical, step-by-step guidance.

What You Will Learn

Create and set up an npm package using TypeScript and tsup
Leverage Playwright's reporting API to extract and format test results
Use Handlebars.js to dynamically generate and customize HTML reports
Design a dashboard to display test suites, cases, and execution details
Group and filter test results to improve report clarity
Prepare and publish your package to npm, following best practices
Automate versioning and releases for a seamless workflow

Who Should Take This Course?

Test Automation Engineers looking to enhance Playwright reports
JavaScript/TypeScript Developers interested in publishing npm packages
QA Engineers who want to build custom reporting solutions
Open-source enthusiasts eager to contribute to the npm ecosystem

This course is beginner-friendly, but some knowledge of JavaScript/TypeScript and Playwright will be helpful.

By the end of this course, you'll have a fully functional npm package that generates beautiful, customizable HTML reports—and you'll be ready to publish your own libraries to the world!

Who this course is for:

  • Test Automation Engineers
  • JS/TS Developers