简体   繁体   English

使用nUnit和FitNesse的测试和持续集成架构方法

[英]Testing and Continuous Integration architecture approach using nUnit and FitNesse

I'm looking for opinions and thoughts surrounding testing and Continuous Integration using nUnit and/or FitNesse. 我正在寻找有关使用nUnit和/或FitNesse进行测试和持续集成的意见和想法。

We develop applications, both windows and web with .net and are using TeamCity for continuous integration 我们使用.net开发应用程序,包括Windows和Web,并使用TeamCity进行持续集成

I'm wondering what is the best way (and tools) to go about testing the various layers of our applications. 我想知道测试各种应用程序层的最佳方法(和工具)是什么。

For example, should I be using FitNesse for UA Testing Stored Procedure Testing and nUnit for c# Unit Testin 例如,我应该使用FitNesse进行UA测试存储过程测试,使用nUnit进行c#Unit Testin

Should I be using FitNesse to test everything? 我应该使用FitNesse来测试一切吗? Can I run FitNesse tests from TeamCity and see the output? 我可以从TeamCity运行FitNesse测试并查看输出吗?

Thanks for any help and direction :-) 感谢您的帮助和指导:-)

Regarding using Fitnesse to test everything: 关于使用Fitnesse测试一切:

Unit testing is about building the code right . 单元测试是关于正确构建代码 And it is done best by the xUnit frameworks like JUnit and Nunit. 最好的方法是使用像JUnit和Nunit这样的xUnit框架。

Acceptance tests are about building the right code . 验收测试是关于构建正确的代码 And this is where Fitnesse excels. 这就是Fitnesse擅长的地方。 Both types of tests are needed and both kinds of frameworks make your life easier in carrying out these tests. 需要两种类型的测试,这两种框架使您在执行这些测试时更加轻松。

Look here for more on this: http://fitnesse.org/FitNesse.UserGuide.AcceptanceTests 请点击此处了解更多信息: http//fitnesse.org/FitNesse.UserGuide.AcceptanceTests

Can I run FitNesse tests from TeamCity and see the output? 我可以从TeamCity运行FitNesse测试并查看输出吗?

Yes you can. 是的你可以。 Teamcity has a commandline runner in addition to specific runners, so you must be able to run anything that runs from a console and see the output. 除了特定的运行程序之外,Teamcity还有一个命令行运行程序,因此您必须能够运行从控制台运行的任何内容并查看输出。 Also, if you were asking about more advanced things like test reports integration with Teamcity, have a look at http://confluence.jetbrains.net/display/TCD3/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-servMsgs whereby you can easily update the test status etc even while the build is running. 此外,如果您询问更多高级内容,例如与Teamcity集成的测试报告,请查看http://confluence.jetbrains.net/display/TCD3/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-servMsgs即使在构建运行时,也可以轻松更新测试状态等。

We're using nUnit for unit testing and FitNesse for story testing (aka acceptance testing, integration testing, etc). 我们使用nUnit进行单元测试,使用FitNesse进行故事测试(也就是验收测试,集成测试等)。 We don't use stored procedures but dbFit is a useful add-on to FitNesse that can do that. 我们不使用存储过程,但dbFit是FitNesse的一个有用的附加组件,可以做到这一点。 We use TeamCity to execute the nUnit and FitNesse tests. 我们使用TeamCity来执行nUnit和FitNesse测试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM