7 Integration testing

This chapter covers

  • Understanding the differences between unit testing and integration testing
  • Using integration testing effectively
  • Comparing Rust’s built-in integration testing to external testing
  • Exploring libraries and tools for integration testing
  • Fuzzing your tests

In chapter 6, we discussed unit testing in Rust. In this chapter, we’ll discuss how to use integration testing in Rust, and how it compares to unit testing. Both unit testing and integration testing are powerful strategies to improve the quality of your software. They are often used together with slightly different goals.

Integration testing can sometimes be a little more difficult because it may require more work to create harnesses and test cases, depending ...

Get Code Like a Pro in Rust now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.