-
Notifications
You must be signed in to change notification settings - Fork 19
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
Common Language Runtime detected an invalid program #26
Comments
This will be something similar to issues #13, #14 and #15, where there's some IL idiom I've not used in any of my test code so far, so this is going to come down to finding a cut-down repro. Running PEVerify over the failing assembly should indicate where things have been broken. My first suspicion is that this will be in the unit tests, as managing the tracking context is quite invasive, and that is what caused the problems in the previous issues (that can be tested by omitting the |
Arf, ok. I will try to find a repro |
I run my test again without the -c parameter. And everything seem ok. All test pass. |
I expected that the problem would be that the adding the tracking instrumentation would be what broke the IL; and that the tests would run OK without that (and that the tracking information would probably not be of significant use to you). I would still be interested in finding what it was in your unit tests that I managed to break, so if you do ever manage to get a simple repro, please do pass it to me. |
Wiki page updated; I'll leave it up to you whether you want to close the issue now you're unblocked. |
Closing for the moment as no repro; leaving as an open ticket on the current kanban. |
This is exactly what I was experiencing in #105, which has been resolved now. |
I'm try to use altcover (globaltool 3.5.569) to generate coverage for my netcore 2.1 app, using "Instrument now, test later, runner mode"
But half of my tests failed with the error message "System.InvalidProgramException : Common Language Runtime detected an invalid program."
And then the report can still be generated (reportgenerator) but is partial.
I use theses commands :
If a use the nuget package
AltCover
everything seem ok.The text was updated successfully, but these errors were encountered: