Skip to content

Commit

Permalink
Enable rego printing in tests
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 committed Dec 19, 2024
1 parent c09f5f3 commit 3ede798
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 3ede798

Please sign in to comment.