本文介绍了2015 RC vNext - 挂起代码覆盖范围的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!


我在服务器上安装了TFS 2015 RC和VS 2015 RC(企业版)。我用一个msTest设置了一个简单的测试项目。设置构建应用程序的构建然后在下一步中运行UnitTests。我还将构建设置为Release和MsBuild x64。

I have TFS 2015 RC and VS 2015 RC ( Enterprise ) installed on the server. I setup a simple test project with one msTest. Setup a build that builds the app then runs the UnitTests in the next step. I also set the build to Release and MsBuild x64.

如果我检查"代码覆盖率已启用"在测试步骤中的复选框,构建在运行测试后挂起。下面是跟踪,在一次测试成功后没有更多的日志记录,我去了_diag目录,并在日志中显示相同的内容。我
无法弄清楚如何让它更详细。我希望从vtest.ps1 powershell脚本中看到更多的日志记录。

If I check the "Code Coverage Enabled" checkbox in the test step, the build hangs after it runs the test. Below is the trace, after the one test succeeds there is no more logging, i went to the _diag directory and the same shows in the logs. I can't figure out how to make it more verbose. I expected to see more logging from the vtest.ps1 powershell script.

******************************************************************************
Starting task: VSTest
******************************************************************************
Executing the powershell script: C:\TFS_Data\Build\tasks\VSTest\1.0.8\VSTest.ps1
Microsoft (R) Test Execution Command Line Tool Version 14.0.22823.1
Copyright (c) Microsoft Corporation.  All rights reserved.
Starting test execution, please wait...
Passed   HelloMs

推荐答案

感谢您的帖子。

您的TFS 2015 RC服务器机器的位版本是什么?

"MsBuild x64"表示您在 MSBuild 步骤>中将 MSBuild架构配置为
MSBuild x64 ;> 高级部分? 
 

The "MsBuild x64" mean you configure the MSBuild Architecture toMSBuild x64 in MSBuild step>>Advanced section?  

你在哪里设置那个"发布"? 请在此处分享截图,这将有助于我们提供更好的响应。

请在TFS 2015 RC服务器上使用VS 2015 RC手动构建和运行测试项目机器,确保代码覆盖率结果在VS中正确显示。然后创建一个新的Build.Preview构建定义,在默认设置中添加MSBuild步骤和Visual Studio Test步骤
(不要更改默认设置),然后排队这个新的构建定义来构建简单的测试项目并检查结果。


这篇关于2015 RC vNext - 挂起代码覆盖范围的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 20:43