开发者

Running NUnit tests in TeamCity 6.5.X with NUnit addins

开发者 https://www.devze.com 2023-03-26 04:06 出处:网络
We are using TeamCity 6.5.1 to manage the compilation, testing and deployment of our builds.Up until now we have been using the NUnit Build Runner from TeamCity to run our tests with NUnit 2.5.8 and h

We are using TeamCity 6.5.1 to manage the compilation, testing and deployment of our builds. Up until now we have been using the NUnit Build Runner from TeamCity to run our tests with NUnit 2.5.8 and had great success.

http://confluence.jetbrains.com/display/TCD65/NUnit

All of our tests are written in C# and .Net 4.0 using Visual Studio 2010. The test projects are compiled into an assembly that we reference through the TeamCity interface.

Now we are adding in a new test project for UI tests that require a custom NUnit addin that we developed to extend the native NUnit functionality. When running the tests in a local development environment with NUnit 2.5.8 installed we are able to place the custom addin in the NUnit addins directory. When NUnit is loaded our addin is picked up automatically.

C:\Program Files (x86)\NUnit 2.5.8\bin\net-2.0\addins

Using the NUnit Build Runner in TeamCity 6.5.1 we cannot see of a way to install our addin. Unlike the native installation of NUnit, TeamCity does not appear to pick up an addin just by placing it inside a sub directory of the NUnit installation.

Does anyone know of a way to install/use an addin using the NUnit Build Runner? Existing 开发者_JAVA技巧documentation discusses the NUnit command line console runner which we are not using. We are using the NUnit Build Runner as the method to run all of our tests so it would be most ideal if we could maintain a standard testing mechanism.

Thank you!


I was trying to solve the same problem. As I found out TeamCity uses its assembly Nunit. Therefore there is no possibility of expansion. You can use the command line to run tests via Nunit. And TeamCity use step "Build Failure Conditions" for reading logs and view the results.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号