Redian新闻
>
Test Driven Development可行性有多少?
avatar
Test Driven Development可行性有多少?# DotNet - 窗口里的风景
b*g
1
正在进行技术路线的评估,看了网上很多评论和一些例子程序。感觉这个Test Driven
Development挺吸引人,可总觉得什么地方缺了点。
不知道哪位实践过,说说优缺点。
谢了!
avatar
c*d
2
优点是如果按代码行数收费你的收入会翻倍,缺点是写完程序后不需要再写unit
testing没事可干
avatar
N*n
3
TDD is the way to go especially for large projects. Not a whole lot
of shortcomings worth mentioning in my mind.

Driven

【在 b******g 的大作中提到】
: 正在进行技术路线的评估,看了网上很多评论和一些例子程序。感觉这个Test Driven
: Development挺吸引人,可总觉得什么地方缺了点。
: 不知道哪位实践过,说说优缺点。
: 谢了!

avatar
b*g
4
What is the role for TDD after the system has been integrated. Are there any
integration test practice using TDD?
There are articles saying TDD is not sufficient for GUI test and Database
test:
http://en.wikipedia.org/wiki/Test-driven_development#Limitations
How will TDD method handle GUI and Database. Sometimes I have requirements
like "when I submit an sales order, I want anther shipping order been
created also, blah blah blah". That kind of requirements is a nightmare for
testing. According t

【在 N********n 的大作中提到】
: TDD is the way to go especially for large projects. Not a whole lot
: of shortcomings worth mentioning in my mind.
:
: Driven

avatar
c*d
5
suppose in your business logic layer you have this code to insert a new
sales order,
ISalesOrderRepository.Insert(order);
and the following code to insert a new shipping order
IShippingOrderRepository.Insert(shippingOrder);
You will need a test to verify whether both code are called exactly once.
Moq is a good .net mocking framework for this purpose.
You will also need integration tests to check whether the orders are
actually inserted into the database.
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。