由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - Test Driven Development可行性有多少?
相关主题
困猫, 定义test driven programming and ..大家谈谈S.O.L.I.D.用在project上的经验教训。 (转载)
调查一下Asp&C# Re: [转载] 最近要用VC#.net编成,请教一下
table and div我的第一个小C#程序
Entity frameworkmemory usage
[讨论]Does asp.net start from the wrong foot?恭喜away担任BF
Webforms vs. MVCAbout mono
想换工作了。。。唉[转载] .Net Question
感觉MVC比web form好用多了VB.Net in DeskTop development 的面试会问什么问题
相关话题的讨论汇总
话题: test话题: driven话题: tdd话题: order
进入DotNet版参与讨论
1 (共1页)
b******g
发帖数: 81
1
正在进行技术路线的评估,看了网上很多评论和一些例子程序。感觉这个Test Driven
Development挺吸引人,可总觉得什么地方缺了点。
不知道哪位实践过,说说优缺点。
谢了!
c**d
发帖数: 579
2
优点是如果按代码行数收费你的收入会翻倍,缺点是写完程序后不需要再写unit
testing没事可干
N********n
发帖数: 8363
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挺吸引人,可总觉得什么地方缺了点。
: 不知道哪位实践过,说说优缺点。
: 谢了!

b******g
发帖数: 81
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

c**d
发帖数: 579
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.
1 (共1页)
进入DotNet版参与讨论
相关主题
VB.Net in DeskTop development 的面试会问什么问题[讨论]Does asp.net start from the wrong foot?
Urgent Help.Webforms vs. MVC
两本中国人写的关于TEST AUTOMATION的书想换工作了。。。唉
vsc#.net的程序怎么这么耗内存?感觉MVC比web form好用多了
困猫, 定义test driven programming and ..大家谈谈S.O.L.I.D.用在project上的经验教训。 (转载)
调查一下Asp&C# Re: [转载] 最近要用VC#.net编成,请教一下
table and div我的第一个小C#程序
Entity frameworkmemory usage
相关话题的讨论汇总
话题: test话题: driven话题: tdd话题: order