Skip to content

Commit

Permalink
Enable rego printing in tests (#244)
Browse files Browse the repository at this point in the history
this helps us debug.

Signed-off-by: Juan Antonio Osorio <[email protected]>
  • Loading branch information
JAORMX authored Dec 19, 2024
1 parent 90b7100 commit 1e61ca0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rules_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ type RuleTypeTestFunc func(t *testing.T, rt *minderv1.RuleType, suite *RuleTest,
func TestRuleTypes(t *testing.T) {
t.Parallel()

require.NoError(t, os.Setenv("REGO_ENABLE_PRINT", "true"))

// iterate rule types directory
err := walkRuleTypesTests(t, func(t *testing.T, rt *minderv1.RuleType, tc *RuleTest, rtDataPath string) {
var opts []tkv1.Option
Expand Down

0 comments on commit 1e61ca0

Please sign in to comment.