COMP 4004 Lecture Notes - Lecture 1: System Under Test, Hard Stuff, User Story

19 views11 pages

Document Summary

5a xunit test patterns: agile development cycles, at the time use cases were the way to deal with acceptance testing. In the book have code associated with user stories, making it agile: system under test. Initialize: controllability ability to put a system in a state you want to test, knowing the state of a system, especially when using encapsulation, is not trivial, need to be careful about characterizing states. Have to check the state of the system which can be extremely complicated: teardown. Correctness is crucial, you cannot have a use case in test code otherwise your introducing multiple paths. System functionality will change and thus tests need to be able to change. Tests must be easier to change than the production code. You do not want double effort, so change of functionality should only require a slight change in tests. Ease of changing tests is so important it is even worth the trade off of a performance hit.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers