-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add trace output to the test mode #856
Labels
Comments
Let's extend For example, without -v OPA only prints failures:
With
Let's extend
|
See my previous comment for details on expected behaviour. The required changes can be made in:
|
tsandall
added a commit
to tsandall/opa
that referenced
this issue
Oct 2, 2018
Previously the test runner only exposed a single interface to set the tracer to use during evaluation. This caused problems when we implemented open-policy-agent#856. These changes refactor the test runner interface to let the caller enable tracing and coverage separately. For now these features are mutually exclusive but in the future we could implement a wrapper that provides support for multiple tracers. Signed-off-by: Torin Sandall <torinsandall@gmail.com>
tsandall
added a commit
that referenced
this issue
Oct 2, 2018
Previously the test runner only exposed a single interface to set the tracer to use during evaluation. This caused problems when we implemented #856. These changes refactor the test runner interface to let the caller enable tracing and coverage separately. For now these features are mutually exclusive but in the future we could implement a wrapper that provides support for multiple tracers. Signed-off-by: Torin Sandall <torinsandall@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When running
opa test
I don't get any trace output, just the result. To get the trace output I need to run theopa run
command line and enabletrace
. If this feature were available foropa test
it would make for a much quicker development cycleThe text was updated successfully, but these errors were encountered: