Open ponyatov opened 6 days ago
There's some ongoing work to add binary snapshots: https://github.com/mitsuhiko/insta/issues/604
What are the requirements for this working on embedded systems? I've generally thought of embedded systems as not having access to std
, and so no access to a file system — how would that work for binary snapshot tests?
I've generally thought of embedded systems as not having access to
std
, and so no access to a file system
algorithmic parts can be isolated and tested on host with conditional compilation
Also gdb
API allows to do some tests on a real hardware, but it looks too complex for implement.
OK, would it be possible to sketch out what that might look like, more specifically? Would we get the snapshot values with an include_bytes!
call? How would that know where to look?
Is this crate suitable to test
For 2D vector graphics render tests if would be great to have snaps in lossless & no-compression image formats to view it as is in VSCode or any other tool. (not shure is it possible for RGBA and narrow paletted colors).