I’m currently investigating what tools are out there that go beyond the built in testing support in Rust. It’s great that we have built in support but coming from Ruby it feels rather rudimentary.
I’ve come across the following crates and I’d be interested to hear everyone’s opinion on them and of course I’m welcoming pointers to tools that I’ve missed:
In addition to that I wonder if there are any “best practices” for writing tests. For example in Ruby I often use dependency injection to replace dependencies of the function under test with more light weight test doubles. Is that something that is done in Rust, too? Maybe by using generics (possibly in combination with trait bounds).
Thanks for your input!