Closed leafarenuk closed 3 years ago
@leafarenuk Thank you for your feedback.
I'll doublecheck with a Testrail 7.1 instance and get back to you asap. If i can't reproduce i'll make the suite_id configurable.
Cheers
Hi @leafarenuk
in the testrail docs i found the following
suite_id | int | The ID of the test suite for the test run (optional if the project is operating in single suite mode, required otherwise)
So i assume you are trying to use the cypress testrail reporter in a multi suite mode (if that's the correct name). To get this working for you i'll have to allow a suite_id to be passed from outside.
Would the following work for you and your use case?
yarn cypress-testrail-reporter --name SOME_NAME --reportFilename PATH_TO_YOUR_REPORT --suiteId 123
Alternatively a suite ID could also be maintained in the cypress.json (as a fallback).
@ma-jahn thanks for your investigation and answer!
yes that should be fine.
I think it would be also good to set the suiteId in cypress.json. That would everyone who uses the "multi suite mode"
Hi @leafarenuk
the merge request was merged #3 and you should be able to install Version 1.2.6.
There are 2 ways of setting the suiteId.
testrailReporter
section of your cypress.jsonyarn cypress-testrail-reporter --suiteId "123"
Please let me know if this works for you. Cheers!
Hi all,
after following your instructions and trying to send information to Testrail I got the following error:
Error: Field :suite_id is a required field.
Full stacktrace:
Maybe the Testrail API have changed to require the suiteID?