Nighttime Possum Meandering

    @architectnow/cypress-devops-reporter

    1.0.2 • Public • Published

    Dev Ops Test Reporter

    A custom test reporter for Cypress derived from cypress-testrail-reporter that publishes test results using Azure Dev Ops Test Management API.

    Installation

    npm install cypress-devops-reporter

    Usage

    Add cypress-devops-reporter along with reporter configuration in the cypress.json:

    {
        "reporter": "cypress-devops-reporter",
          "reporterOptions": {
            "pat": "{Dev Ops PAT with API permissions}",
            "organization": "{Organization Name}",
            "project": "{Project Name}",
            "planId": {TestPlanId},
            "suiteId": {TestSuiteId},
            "runName": "{The Test Run name that should be assigned for Runs created by this reporter}"
          }
    }

    Your Cypress tests should include the ID of your TestRail test case. Make sure your test case IDs are distinct from your test titles:

    // Good:
    it("C123 C124 Can authenticate a valid user", ...
    it("Can authenticate a valid user C321", ...
     
    // Bad:
    it("C123Can authenticate a valid user", ...
    it("Can authenticate a valid userC123", ...

    Reporter Options

    The organization name, project name, test plan id, and test suite id can all be found as part of the URL when viewing the Test Suite:

    https://dev.azure.com/{OrganizationName}/{ProjectName}/_testPlans/define?planId={TestPlanId}&suiteId={TestSuiteId}

    pat: Personal Access Token with permission to manage Test Runs

    Acknowledgements

    Install

    npm i @architectnow/cypress-devops-reporter

    DownloadsWeekly Downloads

    4

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    18.6 kB

    Total Files

    13

    Last publish

    Collaborators

    • alwill94
    • an-admin
    • cyoung-an
    • jwelker
    • nartc