Can we ignore set up and teardown in the report.xml
Closed this issue · 4 comments
LinhDo-LGG commented
Because setup and teardown in Playwright are tests, when uploading the report to Xray, it will create 2 test cases for setup and teardown. Is there any way to run these setups but exclude them when generating the report.xml file?
LinhDo-LGG commented
Resolve the issue with below steps:
- Read the xml file
- Convert to js object
- Loop through test suites
- Remove setup and teardown test suites
- Convert the object back to xml string
- Call the API
bitcoder commented
- to be able to exactly replicate the issue, can you please share a Playwright code snippet and the JUnit XML report that this reporter generated?
- which Playwright version are you using?
bitcoder commented
If you were referring to global setup/teardown, there's currently no specific handling of it
bitcoder commented
Going to close this on the upcoming days for lack of feedback