Code Monkey home page Code Monkey logo

junit-testrail-reporter's Introduction

junit-testrail-reporter

CI Status Code Style: Prettier Commitizen Friendly NPM Package Version Semantic Release


You've got some test cases in TestRail that are automated and the results are ouputted in a JUnit format. This will report the results as a run in TestRail.


Installation

Begin by install the package as a dependency

npm i junit-testrail-reporter

Usage

  1. Add the test suite and case identifier in the title of your test:

      ...
    
      it('S123456 C123456 given some scenario when an action is taken then something is true', () => {})
    
      // multiple test cases are supported as well
      test('S123456 C654321 C654321 C678901 given some scenario when an action is taken then something is true', () => {})
    
      // so are multiple test suites
      test('S123456 C123456 S654321 C654321 C678901 given some scenario when an action is taken then something is true', () => {})
    
      ...
  2. Configure and run your tests to output a JUnit test report

  3. Run

    npx junit-testrail-reporter -p='test-results/*.xml'

Configuration

Argument Name Environment Variable Description Required Default
host or h TESTRAIL_HOST The host of the TestRail server to send results to. ✔️ -
- TESTRAIL_PASSWORD The password, of the user, used to authenticate with TestRail. ✔️ -
projectId TESTRAIL_PROJECT_ID The identifier of the TestRail project to send results to. ✔️ -
resultsPattern or p - The glob pattern for test result files that will be reported to TestRail. ✔️ -
runName or r TESTRAIL_RUN_NAME A brief description used to identify the automated test run. "Automated Test Run via junit-testrail-reporter"
username or u TESTRAIL_USERNAME The username of the account to authenticate with TestRail. ✔️ -

The password configuration parameter can only be set via environment variable.

The resultsPattern configuration parameter can only be set via command line arguments.

junit-testrail-reporter's People

Contributors

jsanchezio avatar semantic-release-bot avatar g-mandas avatar polamatvalls91 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.