concept software test in category junit

appears as: software tests, software tests, software test
JUnit in Action

This is an excerpt from Manning's book JUnit in Action.

The current implementation of the add method is too simple to break. If add were a minor utility method, you might not test it directly. In that case, if add did fail, tests of the methods that used add would fail. The add method would be tested indirectly, but tested nonetheless. In the context of the calculator program, add is not just a method, but also a program feature. To have confidence in the program, most developers would expect there to be an automated test for the add feature, no matter how simple the implementation appears to be. In some cases, you can prove program features through automatic functional tests or automatic acceptance tests. For more about software tests in general, see chapter 5.

Earlier chapters in this book took a very pragmatic approach to design and deploy unit tests. I took a deep look at all the JUnit 5 capabilities and at the architecture of both JUnit 4 and JUnit 5 and demonstrated how to migrate between the two versions. This chapter steps back to look at the various types of software tests and the roles they play in the application life cycle.

JUnit in Action, Second Edition

This is an excerpt from Manning's book JUnit in Action, Second Edition.

The current implementation of the add method is too simple to break. If add were a minor utility method, then we might not test it directly. In that case, if add did fail, then tests of the methods that used add would fail. The add method would be tested indirectly, but tested nonetheless. In the context of the calculator program, add isn’t just a method; it’s a program feature. In order to have confidence in the program, most developers would expect there to be an automated test for the add feature, no matter how simple the implementation appears. In some cases, we can prove program features through automatic functional tests or automatic acceptance tests. For more about software tests in general, see chapter 3.

  • The need for software tests
  • Types of software tests