Simple package to submit jest test results to TestRail
$ yarn add --dev @shelf/jest-testrail-reporter
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
$ git checkout master
$ yarn version
$ yarn publish
$ git push origin master --tags
MIT © Shelf