@shelf/jest-testrail-reporter

jest-testrail-reporter

Usage no npm install needed!

<script type="module">
  import shelfJestTestrailReporter from 'https://cdn.skypack.dev/@shelf/jest-testrail-reporter';
</script>

README

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