首页 文章

使用xunit作为目标可执行文件运行dotcover控制台运行时遇到错误

提问于
浏览
1

我正在使用DotCover控制台运行程序检查代码覆盖率 . 这是我使用的命令行 -

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"

但是我收到以下信息 -

JetBrains dotCover Console Runner v2.7.4.24. Copyright (c) 2009-2015 JetBrains s.r.o. All rights reserved.

[JetBrains dotCover] Coverage session started [9/30/2015 4:22:46 PM]

[JetBrains dotCover] Coverage session finished with errors: Can't start application. See below for more details:

The specified executable is not a valid application for this OS platform...

我使用的DLL来自Visual Studio,我的项目是一个用C#编写的简单测试项目 . 我试图从CMD控制台和Powershell运行命令行,但最终会出现相同的错误 .

有人可以就此发光吗?

1 回答

  • 1

    msbuild运行器不是可执行文件 . 它由MSBuild.exe调用 . 尝试使用xunit.runner.console

相关问题