Skip to Content
Building Software Teams
book

Building Software Teams

by Joost Visser, Sylvan Rigal, Gijs Wijnholds, Zeeger Lubsen
December 2016
Intermediate to advanced content levelIntermediate to advanced
136 pages
3h 33m
English
O'Reilly Media, Inc.
Content preview from Building Software Teams

Chapter 6. Automate Tests

Beware of bugs in the above code; I have only proved it correct, not tried it.

Donald Knuth

Best Practice:

  • Write automated tests for anything that is worth testing.

  • Agree on guidelines and expectations for tests and keep track of test coverage.

  • Automated tests help to find and diagnose defects early and with little effort.

The advantages of automation are easy to recognize. Automated tasks are effortless to run. The more often an automated task is executed, the more you are saving. In addition to saving time and effort for repeating the same tasks, it also removes opportunity for error. Therefore it adds reliability to your development process. This leads to less rework and thus faster development. Of course, to automate something, you need to invest in the automation itself and its maintenance (maintaining test code, script, test data, etc.). After the investment, you save time at each repeat. You should aim to automate as much as feasible in the development pipeline, as that gives developers more time to spend on other, creative tasks. You should also make it easy for yourself by using testing frameworks and tooling as much as possible.

Testing tasks are excellent candidates for automation. Table 6-1 provides a summary of the different testing types.

Table 6-1. Types of testing
Type What it tests Why Who

Unit test

Behavior of one unit in isolation

Verify that units behave as expected

Developer (preferably of the unit)

Integration ...

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

Building Great Software Engineering Teams: Recruiting, Hiring, and Managing Your Team from Startup to Success

Building Great Software Engineering Teams: Recruiting, Hiring, and Managing Your Team from Startup to Success

Joshua Tyler
Why AI Demands a New Breed of Leaders

Why AI Demands a New Breed of Leaders

Faisal Hoque, Thomas Davenport, Erik Nelson

Publisher Resources

ISBN: 9781491951781Errata Page