Overarching strategies
This chapter’s previous two sections were focused on unit testing and performance testing. This final section considers how we might combine the two types of testing for a cohesive strategy. This duality of testing is critical to our ability to develop and maintain robust and highly efficient Java applications.
We will start with a look at how to integrate the two types of testing.
Integrating unit and performance testing
There are a few strategies we can adopt for incorporating both types of testing. The first approach is parallel testing, which involves running unit tests and performance tests in parallel. This approach can save us time. Another approach is shared test cases, which can make our testing more efficient. This approach allows us to leverage shared test data and potential configurations. A third, more advanced strategy is to use a unified testing framework. These frameworks support both types of testing and can ensure a seamless...