Skip to content

using altcover in a application that contains c++ c++/cli  #77

@jmecosta

Description

@jmecosta

hi,

well my fast try to use this, was not very successful. My use case:

  1. Windows x64 application (>2GB binaries). Single exe entry
  2. multiple c++ core dlls
  3. c# dlls all over the place, \plugins, \feature, \dialogs etc
  4. assemblies in GAC

my first try was to run "altcover.exe" alone... and of course i get those:
ERROR *** Instrumentation phase failed
Writing mixed-mode assemblies is not supported
Details written to D:\prod\structures\BuildDrop\Work\bin_release_x64__Instrumented\AltCover-2019-10-09--19-46-27.log

second, was to try to use -s assembly, but this is far from optimal since the code base keeps changing and i would rather aovid the need to adjust those everytime a user adds on.

third, after using some -s ive seen pure c# assemblies being reported as mixed mode. yes those are probably doing some interop, dll import and stuff but they are still .net and would bvery much like to measure the coverage one those

is my kind of scenario supported.

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Third partyProblem lies in a consumed library which may or may not have a work-round

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions