Skip to content

Commit 1e61ca0

Browse files
authored
Enable rego printing in tests (#244)
this helps us debug. Signed-off-by: Juan Antonio Osorio <[email protected]>
1 parent 90b7100 commit 1e61ca0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rules_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ type RuleTypeTestFunc func(t *testing.T, rt *minderv1.RuleType, suite *RuleTest,
129129
func TestRuleTypes(t *testing.T) {
130130
t.Parallel()
131131

132+
require.NoError(t, os.Setenv("REGO_ENABLE_PRINT", "true"))
133+
132134
// iterate rule types directory
133135
err := walkRuleTypesTests(t, func(t *testing.T, rt *minderv1.RuleType, tc *RuleTest, rtDataPath string) {
134136
var opts []tkv1.Option

0 commit comments

Comments
 (0)