Single-purpose library to help transform the output of opa test
into different formats, like JUnit XML or opa test -v
summary.
- Java 8 or higher
implementation("com.bisnode.opa:opa-test-result-formatter:{version}")
<dependency>
<groupId>com.bisnode.opa</groupId>
<artifactId>opa-test-result-formatter</artifactId>
<version>{version}</version>
</dependency>
String testResultsJson = "..."; // output of opa test --format=json
OpaTestResults testResults = OpaTestResults.fromJson(testResultsJson);
JUnitXml junitXml = JUnitXML.from(testResults);
String testResultsJson = "..."; // output of opa test --format=json
OpaTestResults testResults = OpaTestResults.fromJson(testResultsJson);
OpaVerboseSummary opaVerboseSummary = OpaVerboseSummary.of(testResults);
String summary = opaVerboseSummary.summary();
Made with ❤️ @ Bisnode