All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- GH-28 OPA process' output is now consumed and logged on info level, so the subprocess doesn't hang anymore
- startOpa task now waits for OPA server to initialize
- enabled test in
StopOpaTaskTest
- for now, tests rely on
opa
in$PATH
- GH-15 Make testRego task output
opa -v
-like summary when invoked with--info
- Refactor TestRegoTask
- GH-18 Use dedicated library to output JUnit XML
- GH-14 Fix "Failed to read input stream" bug that was triggered on non-empty test-results directory.
- Complete rewrite of the
testRego
task, now not just failing the build on test failures or errors but actually translating the test results into formats recognizable both by Gradle and by CI/CD systems by exporing the test results into JUnit XML reports. This allows for OPA/Rego tests to be both tested and reported like any other Gradle tests. - Task configuration may now override "base" configuration (like
srcDir
andtestDir
) on a per task basis. - Tons of internal improvements, tests and fixes.
- Install/usage instructions to README now that plugin has been approved for plugin.gradle.org.
- Fixed
opa
configuration object which would always use default values regardless of provided config.
- First release, including task
testRego
,testRegoCoverage
,startOpa
,stopOpa
.