spatie/phpunit-snapshot-assertions

Don't automatically create new snapshots when in CI

Closed this issue · 3 comments

Hi,
I had a problem with case insensitive os in local, and case sensitive in CI.
The result was that all the snapshots was recreated in the CI, and we didn't notice, because the CI was green.

It would be really nice to block the snapshot creation in CI environment.

We can automatically use a package to detect if we are running in CI (found quickly this one), or let the user block them via a config.

This is related to #47 (comment) but not the same, as here, we don't want to skip, but to fail!

Thanks.
Mathieu.

We'd accept a PR that allows the creation of snapshot to be disabled.

Add here is the PR @freekmurze! 😉

#94

Thanks, we'll continue in #94