Same name opa tests #331
-
Hi, Lets say i have the following test rego:
When i run
So this gave me this the idea, what if i just want to re-test the one which is failed, so i ran the following:
Out of curiosity i wanted to try to run the first test case with the following command: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey, this is a bit of an edge case but I think you can run package app
test_allow_with_ok_input {
true
}
test_allow_with_bad_input {
false
} |
Beta Was this translation helpful? Give feedback.
Hey, this is a bit of an edge case but I think you can run
opa test -r "data.app.test_allow" test.rego -v
to only run the first one. However, I'd recommend that the test cases are named if you need to run specific tests, e.g.