Font Size: a A A

Test Driven Development Research Based On MVC

Posted on:2008-01-30Degree:MasterType:Thesis
Country:ChinaCandidate:L LiFull Text:PDF
GTID:2178360218453421Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
Test Driven Development is one of the best practices of Extreme Programming. Using Test Driven Development can obtain simple, clear, high grade codes, so the software developer recommended it in the last few years. Kent Beck, the founder of Extreme Programming, proposed partial methods to Test Driven Development, and those methods have applied in many small projects successfully. However, applying Test Driven Development in many systems also have many difficulties, Such as the system which has graphical user interface and the multilayered architecture. The method which is combined by MVC architecture and Test Driven Development is proposed in order to resolve how to carry on the Test Driven Development under the MVC architecture.At first, this paper introduced the basic concept and theory of the agile software development and Extreme Programming, and introduced the original and steps of Test Driven Development emphatically. Then, Narrated the thought of MVC architecture, as well as the present research situation of Test Driven Development. Moreover, From the relationship among each part of the MVC architecture, This paper proposed Test Driven Development method based on the MVC, and introduced the restraint to develop Controller using Test Driven Development ,how to withdrew the Model information, and generate the Model code automatically. Finally, this method applied in the On-line Shopping System.Starting to development from the Controller level using Test Driven Development, The developer will spend more time focusing on the demand and functionality, so all functionality of system can be tested earlier. Generating the Model code automatically can reduce the code which manually input and enhance the speed of system development. At the same time, this method is also cost effective and practical for terms. The developer who extremely understands the system demand may complete the Controller Test Driven Development. The developer who excels in developing the surface can be responsible for View. Model is generated automatically by the tool, so we may regard the size of systems to decide whether this part is completed by the specialist.
Keywords/Search Tags:Extreme Programming, Test Driven Development, MVC, Code Generation
PDF Full Text Request
Related items