Xray-App/playwright-junit-reporter

Can we ignore set up and teardown in the report.xml

Closed this issue · 4 comments

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?

Resolve the issue with below steps:

  1. Read the xml file
  2. Convert to js object
  3. Loop through test suites
  4. Remove setup and teardown test suites
  5. Convert the object back to xml string
  6. Call the API

@LinhDo-LGG ,

  1. 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?
  2. which Playwright version are you using?

If you were referring to global setup/teardown, there's currently no specific handling of it

Going to close this on the upcoming days for lack of feedback