CSC 4110 Lecture Notes - Lecture 21: Kent Beck, Unit Testing, Test Suite

21 views11 pages

Document Summary

Unit tests are written by you, the developer, concurrently with implementation. Scopes of unit tests: unit tests should isolate one piece of software at a time. Verify individual units are built right: good unit testing, automatic: run completely by itself, without any human input, atomic: determine by itself whether the function it is testing has passed or failed, without a human interpreting the results. Test runner an executable program that runs tests. Text fixture the set of preconditions or state needed to run a test. The developer should set up a known good state before the tests, and return to the original state after the tests. Test suites a set of tests that all share the same fixture. Result formatter produces results in one or more output formats. In addition to a plain, human-readable format, there is often a test result formatter that produces xml output.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents