首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET Framework >

八 what test framework should you use

2012-10-10 
8 what test framework should you use?for integration test, i have no prefer between the default Tes

8 what test framework should you use?

for integration test, i have no prefer between the default Test:Unit?

and?

Rspec.

?

just stick to one framework inside a project, no need to mix the two in one project.

?

A second option is?Cucumber, which works nicely with RSpec and allows the definition of plain-text stories describing application behavior. Many Rails programmers find Cucumber especially convenient when doing client work; since they can be read even by non-technical users, Cucumber tests, or “scenarios”, can be shared with (and can sometimes even be written by) the client. Of course, using a testing framework that isn’t pure Ruby has a downside, and I find that the plain-text stories can be a bit verbose and (cu)cumbersome. Since we don’t have any client requirements in?Rails Tutorial, and since I strongly prefer a pure-Ruby testing approach in any case, we’ll stick to RSpec integration tests in this book. Nevertheless, I suggest taking a look at some?Cucumber tutorials?to see if it suits you.

热点排行