Skip to content
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

opa test diff result #1581

Closed
ashutosh-narkar opened this issue Jul 23, 2019 · 2 comments
Closed

opa test diff result #1581

ashutosh-narkar opened this issue Jul 23, 2019 · 2 comments

Comments

@ashutosh-narkar
Copy link
Member

opa test has the --show-failure-line flag that shows the line number of the test failure. It would be helpful for debugging if the opa test command printed a diff between the actual and expected values that resulted in the test failure.

@tsandall
Copy link
Member

One option would be to identify failed expressions from test rules in the trace and then plug them to show the actual vs. expected values. This would help quite a bit in terms of debugging failed tests.

@tsandall
Copy link
Member

tsandall commented Nov 24, 2021

Closing this in favor of #2546.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

2 participants