I have a test documentation tool which accepts reports in XML and JSON. I need to attach screenshots to every test case even the passed ones. Unfortunately, the tool (xRay for Jira) can only digest screenshots in a form of JSON and cannot in XML. I know that cucumber does reports in json but I do not want tests to be BDD-like.
Is there a test runner, which can do reporting in JSON or a solution on how to convert JUnit 5 XML report to appropriate JSON format with screenshots in Base64.
Current set up is Java/Gradle/JUnit5/Selenide but can be reviewed.