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

chapiteau-cli

v1.3.3

Published

cli for chapiteau service

Downloads

3

Readme

Chapiteau CLI

Chapiteau CLI is a command-line tool designed to upload playwright test reports / run data to the Chapiteau service.
Website: chapiteau.shelex.dev

Installation

    # easier to use just via npx:
    npx chapiteau-cli

    # or if you really want to install:
    npm install -g chapiteau-cli

Usage

The Chapiteau CLI provides a command upload which is used to upload a playwright report or provide index.html file to the Chapiteau service.

That is defined by argument --path:

  • path is a report folder - report in that folder will be uploaded and saved in service;
  • path is a report index.html file - just index.html will be sent, run data parsed and file will be not stored anywhere.

If you want to have link to report hosted elsewhere (in case only data is parsed from index.html) - you can specify --report-url.

Flags

  • (required!) --path : Path to the folder or index.html playwright report file to upload.
  • (required!) --url : The URL of the Chapiteau service for specific team and project (take from ui page).
  • (required!) --auth: Api token for the Chapiteau service (could be created via ui).
  • --build-name: CI Build Name (optional).
  • --build-url: CI Build url (optional).
  • --report-url: Playwright Report URL hosted elsewhere (optional).

Examples

Upload a Folder

To upload a folder containing a report:

npx chapiteau-cli upload --path "/path/to/folder" --url "https://chapiteau.shelex.dev/teamId/projectId" --auth "your_api_token"
# example
npx chapiteau-cli upload --path "./playwright-report" --url "https://chapiteau.shelex.dev/api/teams/870ddb60-b3ac-4bea-8f83-94c2d6577650/5d2f0dcb-4c4c-49f5-b14d-28b689c5fd54" --auth "fb8c36be-5923-4bae-bcc3-3a16090c9561"

In this case report will be hosted with Chapiteau.

Upload a File

To upload a single file (e.g., index.html):

npx chapiteau-cli upload --path "/path/to/index.html" --url "https://chapiteau.shelex.dev/teamId/projectId" --auth "your_api_token" --report-url "https://github.pages.or.other.url"
# example
npx chapiteau-cli upload --path "./playwright-report/index.html" --url "https://chapiteau.shelex.dev/api/teams/870ddb60-b3ac-4bea-8f83-94c2d6577650/5d2f0dcb-4c4c-49f5-b14d-28b689c5fd54" --auth "fb8c36be-5923-4bae-bcc3-3a16090c9561" --report-url "https://shelex.github.io/pw-tests-with-gh-pages/5"
# or without report
npx chapiteau-cli upload --path "./playwright-report/index.html" --url "https://chapiteau.shelex.dev/api/teams/870ddb60-b3ac-4bea-8f83-94c2d6577650/5d2f0dcb-4c4c-49f5-b14d-28b689c5fd54" --auth "fb8c36be-5923-4bae-bcc3-3a16090c9561"

In this case only data will be parsed from report file, but no report will be saved to service, it makes sense to provide a link if it is hosted elsewhere.