https://cerbos.dev logo
Title
j

Jesum Yip

05/14/2023, 2:34 PM
hello. according to https://docs.cerbos.dev/cerbos/latest/policies/compile.html#_running_tests,
To run the tests, provide the path to the tests directory using the --tests flag.
However, I've found that if I do not provide the
--tests
flag, the
cerbos
binary still goes ahead and self-discovers the test yamls and runs them.
c

Charith (Cerbos)

05/15/2023, 6:45 AM
Earlier Cerbos versions used to require tests stored in a different directory so that's why that flag still exists. If you don't want to discover and run the tests automatically, use
--skip-tests
.
j

Jesum Yip

05/15/2023, 6:49 AM
Thank you