rust-practice / cargo-leet

Program to make working on leetcode problems locally more convenient
Apache License 2.0
5 stars 3 forks source link

Add snapshot testing for lib #57

Open c-git opened 1 year ago

c-git commented 1 year ago

Discussed in https://github.com/rust-practice/cargo-leet/discussions/47

Originally posted by **c-git** July 21, 2023 Once we've stabilized a bit more on the output we should add snapshot testing to ensure changes don't break output. Proposed create is https://docs.rs/insta/latest/insta/
c-git commented 1 year ago

Just set this up on another project I'm working on and super happy with insta. Happy to help with getting this setup, it's not too hard it's probably a good beginner task. I may need to do it at some point but for now it can wait. Some of our current test are suitable for replacement as snapshot tests as well. So that's also an exercise that needs to be done (separate?)