axodox / AxoCover

Nice and free .Net code coverage support for Visual Studio with OpenCover.
https://marketplace.visualstudio.com/items?itemName=axodox1.AxoCover
MIT License
248 stars 60 forks source link

No highlighting for a class with a interface with CodeContracts `[ContractClass]` #138

Open artkpv opened 7 years ago

artkpv commented 7 years ago

Thank you for the great open tool!

Is it bug that there is no highlighting on the left for this code?

Here is the method GetManageableRoles and xunit test for it. It is under this interface:

    [ContractClass(typeof(AuthorizationServiceContract))]
    public interface IAuthorizationService  { ... }

    [ContractClassFor(typeof(IAuthorizationService))]
    public abstract class AuthorizationServiceContract : IAuthorizationService  { ... }

image

image

image

axodox commented 6 years ago

Can you export the coverage to HTML (report tab / export)?

artkpv commented 6 years ago

@axodox Actually after this error I've switched to OpenCover. It worked there then.

axodox commented 6 years ago

Can you send me the coverage xml file generated by AxoCover (put it into the .axoCover/runs) and OpenCover? Or if sensitive can you run a diff on the file and tell me if you see any difference?