Make opa test -v
default to showing trace with fails and notes
#2068
Labels
opa test -v
default to showing trace with fails and notes
#2068
Desired Behavior
When some test fails when running
opa test
and-v
is specified you get the defaultfails
explain mode trace. If you then add in sometrace()
calls into the policies to troubleshoot you have to specify--explain notes
to see them in a human friendly way... but you lose the context of thefails
trace. It would probably be the most useful default to show both so that someone wouldn't have to use--explain full
to see both failure events and note output.Proposed change
We can add a new
--explain
option to be the default foropa test
and have it combine both notes and fail nodes of the trace. Alternatively we can make the--explain
option take in a list of modes and then default tofails
andnotes
, but allow it to be more flexible for other users that may have the need to combine other explain modes in the future.The text was updated successfully, but these errors were encountered: