Rubyist here. But I‘m not a big fan of snapshot tests 😬
Dunno if there are any rubyists around, but recently open sourced a library to bring inline snapshot testing to ruby and rspec. How does one safely self-modify ruby code, you might be wondering? Turns out rubocop is already really good at that 😬
https://rubygems.org/gems/rspec-inline-snapshot
#ruby #opensource #code #testing #rspec #rubygems #gems #rubocop
Discussion
They’re handy for a niche variety of tests for sure. Or when coverage was sketchy to begin with and you need a quick and dirty regression test.