New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cypress-qase-reporter

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cypress-qase-reporter

Qase Cypress Reporter

2.0.0-beta.1
Source
npm
Version published
Weekly downloads
9.6K
10.42%
Maintainers
2
Weekly downloads
 
Created
Source

Qase TMS Cypress reporter

Publish results simple and easy.

How to integrate

npm install cypress-qase-reporter

Example of usage

If you want to decorate come test with Qase Case ID you could use qase function:

import { qase } from 'cypress-qase-reporter';

describe('My First Test', () => {
    qase([1,2],
        it('Several ids', () => {
            expect(true).to.equal(true);
        })
    );
    qase(3,
        it('Correct test', () => {
            expect(true).to.equal(true);
        })
    );
    qase(4,
        it.skip('Skipped test', () => {
            expect(true).to.equal(true);
        })
    );
    qase(5,
        it('Failed test', () => {
            expect(true).to.equal(false);
        })
    );
});

If you are going to use several specifications for execution and you have in config

"testops": {
  "run": {
    "complete": true
  }
}

then it is necessary to additionally set in the project settings

Allow to add results for cases in closed runs.

To run tests and create a test run, execute the command (for example from folder examples):

QASE_MODE=testops npx cypress run

or

npm test

A test run will be performed and available at:

https://app.qase.io/run/QASE_PROJECT_CODE

Configuration

Reporter options (* - required):

  • mode - testops/off Enables reporter, default - off
  • debug - Enables debug logging, defaule - false
  • environment - To execute with the sending of the envinroment information
  • *testops.api.token - Token for API access, you can find more information here
  • *testops.project - Code of your project (can be extracted from main page of your project: https://app.qase.io/project/DEMOTR - DEMOTR is project code here)
  • testops.uploadAttachments - Permission to send screenshots to Qase TMS
  • testops.run.id - Pass Run ID
  • testops.run.title - Set custom Run name, when new run is created
  • testops.run.description - Set custom Run description, when new run is created
  • testops.run.complete - Whether the run should be completed
  • framework.cypress.screenshotFolder - Folder for save screenshot cypress
You can check example configuration with multiple reporters in demo project.

Supported ENV variables:

  • QASE_MODE - Same as mode
  • QASE_DEBUG - Same as debug
  • QASE_ENVIRONMENT - Same as environment
  • QASE_TESTOPS_API_TOKEN - Same as testops.api.token
  • QASE_TESTOPS_PROJECT - Same as testops.project
  • QASE_TESTOPS_RUN_ID - Pass Run ID from ENV and override reporter option testops.run.id
  • QASE_TESTOPS_RUN_TITLE - Same as testops.run.title
  • QASE_TESTOPS_RUN_DESCRIPTION - Same as testops.run.description

Requirements

We maintain the reporter on LTS versions of Node. You can find the current versions by following the link

cypress >= 8.0.0

FAQs

Package last updated on 05 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts