July 2025
Intermediate to advanced
304 pages
8h 6m
English
When shipping large refactors, it is important to validate that the code will behave as expected. Some form of automated testing is generally considered best practice across the industry. In this chapter, we will create automated tests for the JSON summing code that we wrote in the last chapter. Let’s get started by adding some unit tests to our Rust code.
Rust has a minimal testing system built into the language itself. You may recall a brief mention of it from chapter 3. As we ...
Read now
Unlock full access