Dotnet test and dotCover - coverage not created

TC 2017.2.4 (build 51228)

We have 2 netcoreapp2.0 test projects powered by XUnit, both projects have the same set of referenced packages, but different set of referenced projects (and different tests).

 

When we run first project using dotnet test step with dotCover enabled - we get coverage.

When we run second project with the same configuration - no coverage collected ("No executable code was detected."). Assembly filter for dotCover is OK - should work for both projects.

What can be done?

It may be that 2nd project loads .NET Framework 4.6.1 libs (as netstandard 2.0 compatible), but the first - pure netcore/netstandard - can it explain why coverage is not collected for the 2nd project run?

 

0
3 comments
Avatar
Nikolay Pianikov

Could you add an issue at https://youtrack.jetbrains.com/
Also try adding the following arguments for dotCover: /LogLevel=TRACE /LogFile=…some_file…
And attach this file to the ticket and a build log file too
Thank you in advance

0

I've got the logs.

However, the log contains a lot of things I would not make public, dll names, namespaces, etc. , and it will take time to anonymize.

Are there other options, i.e. maybe I can check the log for some messages?

0

Btw, desktop dotCover works if "Cover child processes" checkbox is on.

I also noticed that if I kill all dotnet.exe processes locally, the console version also did work once, but then created empty coverage again.

 

Do you have an idea what can be wrong?

0

Please sign in to leave a comment.