使用xunit作为目标可执行文件运行dotcover控制台运行程序时遇到错误 [英] Error encountered when running dotcover console runner using xunit as the target executable
问题描述
我正在使用DotCover控制台运行程序来检查代码范围.这是我使用的命令行-
I am using the DotCover console runner to check out the code coverage. Here is the command line I used -
C:.\ dotcover.exe封面/TargetExecutable ="C:\ packages \ xunit.1.9.2 \ lib \ net20 \ xunit.runner.msbuild.dll"/TargetArguments="C:\bin\myConfigFolder\My.Tests.dll"/Output="c:\temp\CoverageReport.html"/ReportType =" HTML"
C:.\dotcover.exe cover /TargetExecutable="C:\packages\xunit.1.9.2\ lib\net20\xunit.runner.msbuild.dll" /TargetArguments="C:\bin\myConfigFolder\My.Tests.dll" /Output="c:\temp\CoverageReport.html" /ReportType="HTML"
但是我在下面收到消息-
But I am getting the message below -
JetBrains dotCover Console Runner v2.7.4.24.版权所有(c)2009-2015 JetBrains s.r.o.保留所有权利.
[JetBrains dotCover]覆盖率会话开始于[9/30/2015 4:22:46 PM]
[JetBrains dotCover]覆盖会话已完成,但出现以下错误:无法启动应用程序.有关更多详细信息,请参见下文:
指定的可执行文件不是此OS平台的有效应用程序...
我使用的DLL来自Visual Studio,我的项目是一个用C#编写的简单测试项目.而且我尝试从CMD控制台和Powershell都运行命令行,但最终出现相同的错误.
The DLL I used was from Visual Studio, and my project is a simple test project written in C#. And I have tried to run the command line from both CMD console and Powershell, but ending up with the same error.
有人可以请点一下吗?
推荐答案
msbuild运行程序不是可执行文件.它由MSBuild.exe调用.尝试使用 xunit.runner.console
包
the msbuild runner is not an executable. It is invoked by MSBuild.exe. Try using the xunit.runner.console
package
这篇关于使用xunit作为目标可执行文件运行dotcover控制台运行程序时遇到错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!