Skip to content

Same name opa tests #331

Discussion options

You must be logged in to vote

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.

package app

test_allow_with_ok_input {
    true
}

test_allow_with_bad_input {
    false
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wermerb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants