Skip to Main Content
Essentials of Software Engineering, 2nd Edition
book

Essentials of Software Engineering, 2nd Edition

by Frank Tsui, Orlando Karam
April 2010
Intermediate to advanced content levelIntermediate to advanced
400 pages
12h 44m
English
Jones & Bartlett Learning
Content preview from Essentials of Software Engineering, 2nd Edition
10.3 Testing Techniques 279
technique is known as test-driven development, which assumes you will
proceed in the following fashion:
1. Write a test case.
2. Verify that the test case fails.
3. Modify the code so that the test case succeeds. (The goal is to
write the simplest code you can, without worrying about future
tests or requirements.)
4. Run the test case to verify it now works and run the previous test
cases to verify that the code has not regressed with any newly
introduced defect.
5. Refactor the code to make it pretty.
In the following section we provide an example of how test-driven devel-
opment would proceed for a simple problem.
10.3.6 An Example ...
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

Essentials of Software Engineering, 4th Edition

Essentials of Software Engineering, 4th Edition

Frank Tsui, Orlando Karam, Barbara Bernal
Essentials of Software Engineering, 3rd Edition

Essentials of Software Engineering, 3rd Edition

Frank Tsui, Orlando Karam, Barbara Bernal
Essentials of Software Engineering, 5th Edition

Essentials of Software Engineering, 5th Edition

Frank Tsui, Orlando Karam, Barbara Bernal

Publisher Resources

ISBN: 9780763785345