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

@qualitywatcher/codeceptjs-reporter

v1.0.0

Published

QualityWatcher plugin reporter for CodeceptJS

Downloads

3

Readme

QualityWatcher Reporter for CodeceptJS

Publishes CodeceptJS runs on QualityWatcher.

Install

npm install @qualitywatcher/codeceptjs-reporter -save-dev

Usage

  1. Get API Key from QualityWatcher

    1. Go to your QualityWatcher account
    2. Hover over your profile avatar and click "Profile Settings"
    3. Select the "API Key" menu item
    4. Click the "Generate API Key" button
    5. Copy your API Key, we will use this for posting the results
  2. Create a .env file in the root of your project and add API KEY, or update an existing .env

     ```shell
     touch .env
     echo "QUALITYWATCHER_API_KEY=[API Key]" >> .env
    
     # For windows:
     # type NUL > .env
     # echo QUALITYWATCHER_API_KEY=[API Key]  > .env
     ```
  3. Install dotenv and require it in your plugin file (if you don't have this already)

     ```ts
     import * as dotenv from 'dotenv';
    
     //...
    
     dotenv.config();
     ```

Include dotenv in "codecept.conf.ts"

  1. Add QualityWatcher has a CodeceptJS plugin in codecept.conf.ts

     ```ts
     // codecept.conf.ts
    
     //...
     plugins: {
         qualitywatcher: {
         enabled: true,
         require: '@qualitywatcher/codeceptjs-reporter',
         reporterOptions: {
             projectId: 1,
             testRunName: 'CodeceptJS',
             description: 'CodeceptJS test run',
             includeAllCases: true,
             complete: true,
             includeCaseWithoutId: true
         }
       },
     },
     //...
    
     ```
  2. Send reports to QualityWatcher

    a. Update your CodeceptJS tests to include the IDs of your QualityWatcher suite and test case that they belongs to. You should include this as a tag. Example @S#C#

        Scenario('@S1C1 Verify login with valid username and password', ({ I }) => {
             I.amOnPage('/');
             // ...
        });

    finding QualityWatcher suite id, case id, and project id

    b. You can also send results to QualityWatcher by running as tests as normal without including any test suite and case ID

Once includeCaseWithoutId is configured to true, test cases that doesn't have a mapped SUITE and CASE ID, they will automatically be created in QualityWatcher