April 2025
Intermediate to advanced
530 pages
12h 39m
English
In this chapter, you’ll learn the importance of testing and its challenges when building GenAI services. You’ll also learn about key concepts such as test plans, the verification and validation models, the testing pyramid, and the role of testing data, environments, and boundaries.
To practice testing, you will use pytest, a popular testing framework with features such as test fixtures, scopes, markers, and fixture parameterization.
You’ll also learn about the pytest-mock plug-in for patching functions and using stubs, mocks, and spy ...
Read now
Unlock full access