【发布时间】:2017-01-14 16:57:00
【问题描述】:
您好,我的 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?这是正确的方法吗,因为我正在硬编码路径是否有更好的方法?
【问题讨论】:
标签: c# unit-testing tfs msbuild build-automation