Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Simple package to submit jest test results to TestRail

License

Notifications You must be signed in to change notification settings

shelfio/jest-testrail-reporter

Repository files navigation

jest-testrail-reporter CircleCI

Simple package to submit jest test results to TestRail

Install

$ yarn add --dev @shelf/jest-testrail-reporter

Usage

Step 1. In your package.json

{
  "jest": {
    "reporters": ["default", "@shelf/jest-testrail-reporter"]
  }
}

Step 2. Add Test Case IDs to your tests in the following format: #C123

it('#C123 should do smth', () => {
  expect(true).toBe(true);
});

Step 3. Ensure you have environment variables with credentials setup:

  • process.env.TESTRAIL_HOST
  • process.env.TESTRAIL_EMAIL
  • process.env.TESTRAIL_PASSWORD
  • process.env.TESTRAIL_PROJECT_ID

Publish

$ git checkout master
$ yarn version
$ yarn publish
$ git push origin master --tags

License

MIT © Shelf