- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我试图使用 OpenCover(今天下载)来覆盖我的测试。这是我使用的命令行:
OpenCover.Console.exe -target:"c:\Programmes2\xunit\xunit.console.clr4.x86.exe" -targetargs:"""C:\Sources\Project\BackOffice.Tests\bin\Debug\BackOffice.Tests.dll"" /noshadow " -output:bo.coverage.xml -targetdir:"C:\Sources\Project\BackOffice.Tests\bin\Debug" -filter:+[*]*
xUnit.net console test runner (32-bit .NET 4.0.30319.269)
Copyright (C) 2007-11 Microsoft Corporation.
xunit.dll: Version 1.9.0.1566
Test assembly: C:\Sources\Project\BackOffice.Tests\bin\Debug\BackOffice.Tests.dll
31 total, 0 failed, 0 skipped, took 2.760 seconds
Committing...
No results - no assemblies that matched the supplied filter were instrumented
this could be due to missing PDBs for the assemblies that match the filter
please review the output file and refer to the Usage guide (Usage.rtf)
<?xml version="1.0" encoding="utf-8"?>
<CoverageSession xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Modules />
</CoverageSession>
An exception occured: Failed to register(user:True,register:True,is64:False):3 the profiler assembly; you may want to look into permissions or using the -register:user option instead. C:\Windows\system32\regsvr32.exe /s /n /i:user "C:\Sources\Opencover\sawilde-opencover-be6e491\main\bin\Debug\x86\OpenCover.Profiler.dll"
stack:
à OpenCover.Framework.ProfilerRegistration.ExecuteRegsvr32(Boolean userRegistration, Boolean register, Boolean is64) dans C:\Sources\Opencover\sawilde-opencover-be6e491\main\OpenCover.Framework\ProfilerRegistration.cs:ligne 59
à OpenCover.Framework.ProfilerRegistration.ExecuteRegsvr32(Boolean userRegistration, Boolean register) dans C:\Sources\Opencover\sawilde-opencover-be6e491\main\OpenCover.Framework\ProfilerRegistration.cs:ligne 45
à OpenCover.Framework.ProfilerRegistration.Register(Boolean userRegistration) dans C:\Sources\Opencover\sawilde-opencover-be6e491\main\OpenCover.Framework\ProfilerRegistration.cs:ligne 31
à OpenCover.Console.Program.Main(String[] args) dans C:\Sources\Opencover\sawilde-opencover-be6e491\main\OpenCover.Console\Program.cs:ligne 82
最佳答案
下载release包解决了register参数的异常。但是运行相同的命令行会产生多个此类错误:
BackOffice.Tests.HomeControllerShould.Redirect_To_Action_Feed_Index [FAIL]
System.MissingMethodException : Méthode introuvable : 'Void System.CannotUnloadAppDomainException.SafeVisited(Int32)'.
Stack Trace:
à BackOffice.Tests.HomeControllerShould..ctor()
31 total, 31 failed, 0 skipped, took 0.241 seconds
Committing...
Visited Classes 0 of 44 (0)
Visited Methods 0 of 183 (0)
Visited Points 0 of 1352 (0)
Visited Branches 0 of 322 (0)
==== Alternative Results (includes all methods including those without corresponding source) ====
Alternative Visited Classes 0 of 53 (0)
Alternative Visited Methods 0 of 268 (0)
关于xunit - opencover + xunit 没有结果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10735248/
即使我尝试了一个非常简单的带有测试的控制台应用程序,我也无法让 Open Cover 中的过滤器参数正常工作。这是过滤器 - 我以管理员身份运行 这: "C:\Users\Mojo\AppData\L
分支覆盖对以下语句有效吗? 我期望有一个红色指示符,因为第一个表达式仅在为假和不为真的情况下进行测试。 tax.Voided = P_tax.Amount == 1012312870000.42M |
我们目前正在运行一个 OpenCover session ,该 session 正在运行 nunit3.console.exe。 我们的命令行如下: "C:\Program Files (x86)\O
我正在尝试使用 open cover 为我的项目生成代码覆盖率报告,但它只涵盖测试类,而不是我想要的源代码。我正在使用以下命令来运行我的测试: "C:\Program Files (x86)\Open
我正在尝试针对开放封面运行构建参数,但我找不到文件位置,因为该位置本身有空格 C:\Program Files (x86)\OpenCover\OpenCover.Console.exe -r
我在使用 OpenCover 时遇到了一些问题 我有以下文件夹结构 \工具 \工具\Nunit \工具\OpenCover \Buildartifacts 当我的代码编译时,所有编译后的代码都会生成到
关于 OpenCover github page我可以看到 OpenCover 支持测试覆盖(“第 3 版(测试支持覆盖,调试符号”)。问题是,我不知道如何使用此选项运行 OpenCover。我的工作
我正在使用 OpenCover确定简单 C# 项目的代码覆盖率。 问题 虽然我可以看到 MSTest 正在运行单元测试(并成功),但生成的报告是空的。 详情 这是我正在使用的命令: opencover
我正在使用 OpenCover 为 Web 应用程序生成功能测试覆盖率。这些测试运行时间相当长(3 小时以上),因此我们将它们分成多个并行运行的测试。因此,不是一份单一的覆盖率报告,而是六份。 为了将
我试图使用 OpenCover(今天下载)来覆盖我的测试。这是我使用的命令行: OpenCover.Console.exe -target:"c:\Programmes2\xunit\xunit.co
我正在尝试使用 Opencover 来运行 NUnit 测试用例的代码覆盖率。我得到了预期的结果,但问题是在执行 opencover 时它再次运行测试。我们不希望发生这种情况,因为我们单独运行测试。下
我正在尝试使用 Opencover 来运行 NUnit 测试用例的代码覆盖率。我得到了预期的结果,但问题是在执行 opencover 时它再次运行测试。我们不希望发生这种情况,因为我们单独运行测试。下
已编辑以显示 Fyodor 指出的忽略返回以及由此产生的错误 我有一个 .fsx 文件,其中包含多个按预期工作的目标,但我无法让 OpenCover 工作的目标。这是我的目标代码: Target "C
作为代码覆盖测试的一部分,我需要测试几个服务。 OpenCover github 提到了执行此操作的能力(问题 #36),但没有告诉您如何操作。维基“用法”页面对此没有提及任何内容。 opencove
在使用 OpenCover 为 MSTest 套件生成覆盖率报告(然后使用 ReportGenerator 生成 HTML 报告)时,我试图排除框架生成的类。特别是通过服务引用在项目命名空间下生成的类
我正在开发一个使用 Jenkins 作为 CI 服务器的 .NET 项目。服务器正在按预期工作,但现在我试图让它在 低代码覆盖率 的情况下发出警报。 我正在尝试的方法是使用 Sonar 执行 NUni
在让 OpenCover 在我的机器上工作后,下一步是让它与构建服务器一起工作。 我一直在尝试在 Bamboo Build Server 上将 OpenCover 与 MSBuild 集成。我已经修改
如何添加过滤器来跳过命名空间/程序集中的某些类。例如:SYM.UI 是基本程序集,我想跳过 SYM.UI.ViewModels。编写以下过滤器,但它包含所有这些过滤器并且不能满足我的要求: +[SYM
我有一个项目在 TeamCity 下运行时不会在输出覆盖文件中提供任何覆盖范围。当我从命令行运行时,它覆盖得很好。显然,TeamCity 运行时使用的本地系统帐户存在一些权限问题,即,如果我将 Tea
当直接使用 NUnit 执行时,我的测试工作得很好,但是当通过 OpenCover 执行时(仍然使用 NUnit 作为测试运行器),我得到以下错误: ProcessModel: Default
我是一名优秀的程序员,十分优秀!