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

testcafe-reporter-influxdb

v1.6.0

Published

TestCafe reporter plugin for Influxdb

Readme

testcafe-reporter-influxdb

Build Status

This is the influxdb reporter plugin for TestCafe. Generated this project using the generator-testcafe-reporter

Requirements

In the project where you use the reporter:

  • TestCafe tests
  • Dotenv as devDependency
  • Set the required environment variables in the .env or .yml

Install

npm install --save-dev testcafe-reporter-influxdb

Local

Install the library local in the project you want to use the reporter by using the tarball

gulp build
npm pack
npm install --save-dev ../testcafe-reporter-influxdb/testcafe-reporter-influxdb-1.0.0.tgz

Usage

When you run tests from the command line, specify the reporter name by using the --reporter option:

testcafe chrome 'path/to/test/file.js' --reporter influxdb

When you use API, pass the reporter name to the reporter() method:

testCafe
    .createRunner()
    .src('path/to/test/file.js')
    .browsers('chrome')
    .reporter([{ name: 'influxdb', output: `output/test/influxdb.txt` }]) // <-
    .run();

Don't forget to set the following environment variables of the Influx database in the project you use this reporter! Locally via .env or via .yml:

variables:
    INFLUX_HOST: "localhost"
    INFLUX_PORT: "8086"
    INFLUX_DB_NAME: "testresults"
    INFLUX_USERNAME: "root"
    INFLUX_PASSWORD: "root"

Expand this reporter to fit your needs

Check out the typedefs.js to see what data is accessible from the TestCafe test runs.

Extract release version

Export the release version of your application via the CI_RELEASE_VERSION variable. Add this script to your pipeline yaml and find it back in your InfluxDB!

    - git fetch --all --tags
    - export CI_RELEASE_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`)

Test Metadata

Within this reporter you can create a generic collection of your test metadata; feature and risk categories for example. This is how you can categorize your fixture or test:

fixture`The user sees the home screen after a successful login`
  .meta({ feature: FeatureCategory.LOGIN, risk: RiskCategory.SMOKE })

This metadata is saved in the database, in order to filter or group on it across multiple applications. You can create a dashboard per feature category for example!

Author

anaisvanasselt (https://linkedin.com/in/anais-van-asselt)