open-policy-agent / opa-idea-plugin

Open Policy Agent plugin for IntelliJ
MIT License
56 stars 22 forks source link

Add plugin support for coverage #96

Open devstuff opened 3 years ago

devstuff commented 3 years ago

What would you like to be added

Integration with IntelliJ's coverage system.

Why is this needed

To ensure that the user's .rego files are fully tested.

Implementation details

opa --coverage currently only generates coverage info in JSON format, which would have to be translated into IntelliJ's internal format (as raised in https://github.com/open-policy-agent/opa/issues/3219)