O'Reilly logo

Mastering Software Testing with JUnit 5 by Boni García

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The psychology of testing

From a psychological point of view, the objective of testing should be executing a software system with the intent of finding defects. Understanding the motivation of that claim can make the difference in the success of our tests.

Human beings tend to be goal oriented. If we carry out tests to demonstrate that a program has no errors, we will tend to implement tests selecting test data with a low probability of causing program failures. On the other hand, if the objective is to demonstrate that a program has errors, we will increase the probability of finding them, adding more value to the program than the former approach. For that reason, testing is often considered as a destructive process, since testers are supposed ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required