如何在 Team City 中运行所有 NUnit 测试? [英] How can I run all NUnit Tests in Team City?

查看:15
本文介绍了如何在 Team City 中运行所有 NUnit 测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们每次提交都使用 TeamCity 6.0 构建 VS C# 解决方案.
构建完成后,将运行另一个测试 TC 项目.为了让开发人员可以添加/删除/编辑 VS 单元测试项目,如何让 TeamCity 使用 sln 文件或搜索测试 dll?
我不想每次将新的测试项目添加到 VS 解决方案时都必须编辑构建.

从以下位置运行测试: ***Test*.dll 似乎不起作用,它只获得第一个测试(当前失败)

We are using TeamCity 6.0 to build VS C# solutions each commit.
Once the build is complete, a different test TC project runs. So that developers can add/remove/edit VS unit test projects, how can I make TeamCity use the the sln file or search for test dll's?
I don't want to have to edit the build each time a new test project is added to the VS solution.

Run tests from: ***Test*.dll Doesn't appear to work, it only get s the first Test (which is currently failing)

推荐答案

已修复 :) -RTFL(阅读日志!)
从以下位置运行测试: **indebug*Test*.dll

Fixed :) - RTFL (Read the log!)
Run tests from: **indebug*Test*.dll

这篇关于如何在 Team City 中运行所有 NUnit 测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆