-
Notifications
You must be signed in to change notification settings - Fork 389
No coverage reported when using RavenDb.TestDriver package #342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Okay, looking forward to #341 getting merged ;). If there's anything to try out already, let me know, I would be willing to test drive. |
FYI, I checked out the code from #341 and ran it on my project using coverlet.console and while I am seeing some more messages, I still don't see any reason for the coverage being zero. |
@MarcoRossignoli I added the logging in my local build and I now get the following output:
I'm pretty sure my code is being called, so either the assemblies aren't being properly instrumented or something else is going on. I'll see if I can get a handle on this ;). |
Can say for sure. Possibly the assembly wasn't instrumented or it was instrumented and the temp file couldn't be created. @jmezach what version of Coverlet are you using? |
@tonerdo I'm currently using locally build bits based on the sources from #341 in order to figure out what's going on, but I was using 2.5.1 when I initially reported this issue. I've managed to add some additional logging inside of the instrumented assembly by tweaking the ModuleTrackerTemplate. I can see that the RecordHit method there is being called while the tests are executing. But I also added a Console.WriteLine at the top of UnloadModule which I do not see in my output, so it looks like the event isn't triggered. After reading #110 I'm fairly sure I'm hitting the same problem where VSTest is already shutting down the test process before the results file is generated. Guess I'll have to wait for #329 to land. Any updates on the progress there? |
@jmezach did you work around this problem by any chance? I'm using 2.6.3 atm and issue still seems to be there. What I noticed is that when I set |
Solved with usage of in process collectors https://github.com/tonerdo/coverlet#requirements https://github.com/tonerdo/coverlet/blob/master/Documentation/VSTestIntegration.md |
I'm having an issue using Coverlet when I use RavenDb.TestDriver in my tests. As soon as I add a call to its GetDocumentStore() function I'm getting zero coverage. Here are the steps to reproduce the issue:
Expect behaviour:
Actual behavior:
I'm not sure if there's a way to get more diagnostic output from Coverlet to figure out what's going on, but please let me know if there is.
The text was updated successfully, but these errors were encountered: