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

track-my-play

v1.0.3

Published

live monitor playwright test execution

Downloads

222

Readme

track-my-play

track-my-play is a live monitoring tool for Playwright test execution. It provides a real-time dashboard to track the status of your Playwright tests.

Features

  • Real-time test status updates
  • Visual representation of test progress
  • Easy integration with Playwright

How it works?

Central point is the local running Express server that listens to messages broadcasted from the test events in your test automation project. Another client living inside the dashboard UI is also connected to the same server. The server just propagates the updates to all the clients including the UI one, that dynamically renders the updates as current tests running, completed tests execution time etc.

Installation and setup

  1. Install the dependancy in your test automation project:

    npm install track-my-play
  2. Create an npm script in your package.json to use track-my-play's cli command listen-for-playwright

    // package.json
      "scripts": {
        "live-server-start": "listen-for-playwright",
      }
      //rest of the file
  3. Setup the Playwright reporter alongside your existing reporters

    // playwright.config.ts
      export default defineConfig({
        reporter: [
            ['allure-playwright'],
            ['track-my-play', { socketUrl: 'http://localhost:3000' }],
        ],
        //rest of the config
  4. Start the server with the script you previosly defined. This will start a local server on port 3000, will serve the html dashboard, and will open it in the browser automatically.

    npm run live-server-start
  5. Now, once you run tests, assuming test are running on local machine as well, test progress updates will be send to the server and the dashboard would present real test execution data: name of the test running, its status (pending, passed, failed) and the total execution time in ms. Progress bar on the top will show the percentage of completed tests of the total number of tests contained in that particular execution.

If the tests are running on a remote machine, simply forward publically the port 3000 where the server is running and change the reporter configuration

    // playwright.config.ts
      export default defineConfig({
        reporter: [
            ['allure-playwright'],
            ['track-my-play', { socketUrl: 'http://forwarded-3000.port.io.something' }],
        ]
        //rest of the config

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements

Contact

For any inquiries, please contact [email protected].