Hey How do you approach testing in CI/CD while usi...
# help
m
Hey How do you approach testing in CI/CD while using Cerbos? I didn’t find docs on it. I would like to be able to run tests either locally or on pipeline without pushing all the data to the cloud etc (eg to not count MAU from test users etc)
a
Hey https://docs.cerbos.dev/cerbos/latest/policies/compile.html You can run the tests locally or use CI (we even publish a GitHub action and Dagger module)
m
T about testing policies while I an asking more about testing whole app with cerbos
a
For running your e2e integration tests, we recommend starting a Cerbos instance up pointing to your policies files and then configuring your application to use that. You can also leverage the
cerbos run
command to spin up an instance just for the lifecycle of your tests
m
So for e2e tests I am completely independent from cloud?! 😍
Even more, policies if placed in mono repo can go together with code through the whole development lifecycle?
a
Correct!