CSE 360 Week 5 Notes (pt1)
CSE 360 Week 5 Notes (pt1) CSE 360
Popular in Software Engineering
Popular in Computer Science and Engineering
This 1 page Class Notes was uploaded by Alexandra Notetaker on Thursday September 15, 2016. The Class Notes belongs to CSE 360 at Arizona State University taught by Debra Calliss in Fall 2016. Since its upload, it has received 3 views. For similar materials see Software Engineering in Computer Science and Engineering at Arizona State University.
Reviews for CSE 360 Week 5 Notes (pt1)
Report this Material
What is Karma?
Karma is the currency of StudySoup.
You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!
Date Created: 09/15/16
CSE 360 TEST DRIVEN DEVELOPMENT-TDD Traditional Development Collect requirements Design solution Code solution Test solution Deliver TDD: (Red-Green-Refactor) Write a test Run all tests Write the implementation code Run all tests Refactor Red State While writing tests Red state b/c it is written before implementation, it is supposed to fail Being in green while testing is a sign of a false positive Green State Once implementation is finished, the test should pass If not, implementation is wrong The ides a not to make the implementation final, but to provide just enough code for the test to pass Refactoring Once green refactoring Make code optimum without adding new features During this, all tests should pass If not, refactoring broke existing functionality Should not include new tests Problems with Test First Development Programmers taking shortcuts in testing Tests are difficult to write incrementally Difficult to judge a set of tests for completeness of coverage. Is the really testing? TDD is a new approach to design Forces us to think of implementation before writing code Tests allow us to develop with speed Being able to recognize the code and having confidence that no functionality is broken boosts quality Main objective is code design with tests that are very useful side product.
Are you sure you want to buy this material for
You're already Subscribed!
Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'