使用TeamCity配置MsTest [英] Configuring MsTest with TeamCity

查看:89
本文介绍了使用TeamCity配置MsTest的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用带有Git存储库和MSTest的TeamCity.

I'm using TeamCity with a Git repository and MSTest.

运行测试的步骤出现以下错误:

The step running the tests gives the following error:

[Step 4/4] No assemblies, run configuration and test metadata were found
[Step 4/4] Process exited with code 1

所以组装路径似乎是错误的.

So the assembly path seems to be wrong.

要执行测试,我需要指定汇编路径,而我不明白的是,我的dll应该在哪里? Git存储库不包含项目的bin文件夹,我必须将其添加到Git吗?在执行测试之前,dll是否有建立的地方?

To execute the tests I need to specify the assembly path, what I don't understand, is where my dll is supposed to be ? The Git repository does not contain the bin folder of the project, must I add it to Git ? Is there a place the dll is build before executing the tests ?

MSTest代理已安装在服务器上. 这是我的配置.

MSTest agent has been installed on the server. Here is my configuration.

推荐答案

我忘记创建MSBuild步骤来构建测试项目.如@Gintama所述,您可以通过查看

I forgot to create a MSBuild step to build the test project. As @Gintama stated, you can check if the project was built by looking in

C:\TeamCity\buildAgent\work\57e7c4dbaf38234a\

但是,TeamCity不会在路径中的正斜杠和反斜杠之间产生任何区别,两者均有效.

However, TeamCity does not make any difference between slashes and backslashes in the path, both work.

这篇关于使用TeamCity配置MsTest的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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