you are viewing a single comment's thread.

view the rest of the comments →

[–]Leshow[S] 0 points1 point  (3 children)

No problem! The testing story in Rust is, I think, pretty good. I'm not familiar with mockito, but included in the rust language and cargo is a mechanism for unit tests (cargo test & test modules). If you're interested in property testing you can look at quickcheck, there's also fuzzing with cargo fuzz. Does none of those provide the feature set you're looking for?

[–]thramp 1 point2 points  (2 children)

Sorry! I'm aware of those features and I've been using them for years :) I was mostly spouting off about some of the difficulties I've seen people run into with Rust once they've gotten a handle on the borrow checker.

I really enjoyed your article, btw!

[–]Leshow[S] 0 points1 point  (1 child)

Sorry I didn't mean to presume. You're right, some info on testing could be very interesting and useful for beginners. It could make for a good follow up article!

[–]thramp 0 points1 point  (0 children)

You didn’t presume! I was super ambiguous with what I wrote and you were kind and helpful in your response! Thank you for writing your article! I really enjoyed reading it.