Skip to Content
Effective Software Testing
book

Effective Software Testing

by Mauricio Aniche
April 2022
Intermediate to advanced
328 pages
9h 56m
English
Manning Publications
Content preview from Effective Software Testing

9 Writing larger tests

This chapter covers

  • Deciding when to write a larger test
  • Engineering reliable integration and system tests

Most of the code we tested in previous chapters could be tested via unit tests. When that was not possible because, say, the class depended on something else, we used stubs and mocks to replace the dependency, and we still wrote a unit test. As I said when we discussed the testing pyramid in chapter 1, I favor unit tests as much as possible when testing business rules.

But not everything in our systems can (or should) be tested via unit tests. Writing unit tests for some pieces of code is a waste of time. Forcing yourself to write unit tests for them would result in test suites that are not good enough to find bugs, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Effective Software Testing

Effective Software Testing

Mauricio Aniche
The Art of Software Testing, 3rd Edition

The Art of Software Testing, 3rd Edition

Glenford J. Myers, Corey Sandler, Tom Badgett
Software Testing: Principles and Practices

Software Testing: Principles and Practices

Srinivasan Desikan, Gopalaswamy Ramesh

Publisher Resources

ISBN: 9781633439931Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link