-
I am trying to integrate crane into a rust crate that uses snapshot testing but I cannot figure out how to make it work. I am using insta for the snapshot tests, and when running the exact same cargo nextest command in my devshell I get no failures. However when running nix flake check, all snapshot tests fail. Does anyone have experience with this sort of setup? See https://github.com/alphal00p/spenso for the flake. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Does your derivation have access to the snapshot test files?
filters them out and you need to include them through a custom filter. You could check that with |
Beta Was this translation helpful? Give feedback.
Does your derivation have access to the snapshot test files?
It could be that:
filters them out and you need to include them through a custom filter.
You could check that with
cntr
: https://github.com/Mic92/cntr and enter nix build sandbox.