Xray-App / playwright-junit-reporter

Playwright JUnit Enhanced XML reporter
Apache License 2.0
6 stars 3 forks source link

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

Open LinhDo-LGG opened 5 months ago

LinhDo-LGG commented 5 months ago

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 5 months ago

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
bitcoder commented 4 months ago

@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?

bitcoder commented 4 months ago

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

bitcoder commented 1 month ago

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