Skip to content
This repository was archived by the owner on Oct 9, 2026. It is now read-only.
optimaxdevPublic archive

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Repository files navigation

Build Status

jest-tcm-reporter

This package sends reports to the Kanoah Tests (Adaptavist) - Test Management for Jira

It works only with reports from jest

Installation

$ yarn add --dev optimaxdev/jest-tcm-reporter#master

Configuration

Create config file jest-tcm.config.js

// jest-tcm.config.js

module.exports = {
    tcm: {
        user: {
            username: 'user',
            password: 'password',
        },
        projectKey: 'KEY'
    },
    reportsFile: {
        JSON: './public/reports/team-city.json'
    },
    api: {
        host: 'https://jira.example.com/rest/kanoahtests/1.0'
    },
    whitelist: {
        enabled: true,
        checkVersion: true,
        query: 'projectKey = "KEY" AND status = "Approved"',
    },
}

or add a config to package.json

// package.json

{
    "jest-tcm": {
        "tcm": {
            "user": {
                "username": "user",
                "password": "password",
            },
            "projectKey": "KEY"
        },
        "reportsFile": {
            "JSON": "./public/reports/team-city.json"
        },
        "api": {
            "host": "https://jira.example.com/rest/kanoahtests/1.0"
        },
        "whitelist": {
            "enabled": true,
            "checkVersion": true,
            "query": "projectKey = \"KEY\" AND status = \"Approved\""
        }
    }
}

Options

Variable Default Value Description
cycleName Name cycle in JTM
target Each cases separately or group by describes
testRunKey Сycle key, if specified, results are added to the existing it
updateCases If specified, test cases' steps will be updated.

Whitelist feature

Whitelist feature now only works for describe strategy.

Pattern for naming is: [KEY (VERSION)]

Whitelist configuration

  • enabled - If true, only test cases in whitelist will be marked.
  • query - Query to form whitelist (See /testrun/search in api doc).
  • checkVersion - If true, only cases with the same version will be marked (compare with latest version of case).

Usage

Each case separately

$ npx jest-tcm-reporter --cycleName=ANT_QA-34_Mobile --target=case

Grouped by describe

$ npx jest-tcm-reporter --cycleName=ANT_QA-34_Mobile --target=describe

With updating cases

$ npx jest-tcm-reporter --cycleName=ANT_QA-34_Mobile --target=case --updateCases

Append results are added to the existing cycle.

$ npx jest-tcm-reporter --cycleName=ANT_QA-34_Mobile --target=describe --testRunKey=ANT_C454

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages