@shelf/jest-testrail-reporter
v1.1.2
Published
jest-testrail-reporter
Downloads
71
Maintainers
Keywords
Readme
jest-testrail-reporter 

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