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)
T about testing policies while I an asking more about testing whole app with cerbos
a
Alex Olivier (Cerbos)
02/22/2025, 2:23 PM
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
Marek
02/22/2025, 2:55 PM
So for e2e tests I am completely independent from cloud?! 😍
Marek
02/22/2025, 2:55 PM
Even more, policies if placed in mono repo can go together with code through the whole development lifecycle?