Skip to content

Coverlet throws BadImageFormatException  #1612

@AdityaKSemwal

Description

@AdityaKSemwal

Hi,

I am trying to run Coverlet but it throws the following error for every dll
BadImageFormatException during MetadataReaderProvider.FromPortablePdbStream in InstrumentationHelper.PortablePdbHasLocalSource, unable to check if the module has got local source.
image

I have sets of e-2-e tests that can be run only through executable application.
here is the command I am following
coverlet D:\d\Source\myProject\bin\Debug --target "C:\Program Files\myProject.exe" --output "D:\coverlet.xml" --format opencover

I can open exe and run tests but I am not getting any code coverage.
Any Idea how to fix this issue?
I m using coverlet.console on .net framework project

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionThis issue is a question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions