您好我的TFS构建过程中有以下构建步骤
1)构建代码 2)运行测试
第一步有以下输入
解决方案:MyApp \ TestApp * .sln
MSBuild参数:/ p:DeployOnBuild = True / p:DeployDefaultTarget = WebPublish / p:WebPublishMethod = FileSystem / p:DeleteExistingFiles = True / p:publishUrl =“D:\ output”
然后在步骤我的测试步骤中我有以下
测试组件:D:\ output \ bin * tests * .dll
当我运行它时,我收到以下警告 “找不到与模式匹配的测试程序集:'D:\ output \ bin * tests * .dll'
除测试项目外,所有二进制文件都在那里如何告诉第一步发布测试dll?这是正确的方法,因为我很难编写路径是否有更好的方法?
答案 0 :(得分:3)
这是因为我在发布模式下构建,单元测试项目未设置为在发布模式下构建