Advertisement
Guest User

README.md

a guest
May 11th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. # TestRail Reporter for Cypress
  2.  
  3. Publishes [Cypress](https://www.cypress.io/) runs on TestRail
  4.  
  5. ## Install
  6.  
  7. ```shell
  8. $ npm i -D cypress-testrail-reporter
  9. ```
  10.  
  11. ## Usage
  12.  
  13. Add reporter to YOUR `cypress.json`:
  14.  
  15. ```json
  16. ...
  17. "reporter": "cypress-testrail-reporter",
  18. "reporterOptions": {
  19. "domain": "yourdomain.testrail.com",
  20. "username": "username",
  21. "password": "password",
  22. "projectId": 1,
  23. "suiteId": 1,
  24. }
  25. ```
  26.  
  27. Your Cypress tests should include THE ID of YOUR TestRail test cases. Make sure your test case ids are distinct from YOUR test titles:
  28.  
  29. ```Javascript
  30. it("C123 C124 Can authenticate with invalid user", . . .
  31. it("Can authenticate a valid user C321", . . .
  32. ```
  33.  
  34. ## Reporter Options
  35.  
  36. **domain**: _string_ domain name of your TestRail instance (e.g. for a hosted instance instance.testrail.net)
  37.  
  38. **username**: _string_ email of THE user under which the test run will be created
  39.  
  40. **password**: _string_ password or the API key for the aforementioned user
  41.  
  42. **projectId**: _number_ projet with which the tests are associated
  43.  
  44. **suiteId**: _number_ suite with which the tests are associated
  45.  
  46. **runName**: _string_ (optional) name of the Testrail run
  47.  
  48. ## TestRail Settings
  49.  
  50. To increase security, THE TestRail team suggests using an API key instead of A password. You can see how to generate an API key [here](http://docs.gurock.com/testrail-api2/accessing#username_and_api_key)
  51.  
  52. If you maintain your own TestRail instance on your own server, it is recommended to [enable HTTPS for your TestRail installation](http://docs.gurock.com/testrail-admin/admin-securing#using_https)
  53.  
  54. For TestRail Hosted accounts maintained by [Gurock](http://www.gurock.com/), all accounts will automatically use HTTPS.
  55.  
  56. You can read the whole TestRail documentation [here](http://docs.gurock.com/)
  57.  
  58. ## Authors
  59.  
  60. * **Milutin Savovic** - *Initial setup* - [github](https://github.com/mickosav)
  61.  
  62. ## License
  63.  
  64. This project is licensed under the MIT License
  65.  
  66. ## Acknowledgments
  67.  
  68. * [Pierre Awaragi](https://github.com/awaragi) who owns the [mocha-testrail-reporter](https://github.com/awaragi/mocha-testrail-reporter) repository that was forked
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement