{"action":"created","issue":{"url":"https://api.github.com/repos/SteveGilham/altcover/issues/26","repository_url":"https://api.github.com/repos/SteveGilham/altcover","labels_url":"https://api.github.com/repos/SteveGilham/altcover/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/SteveGilham/altcover/issues/26/comments","events_url":"https://api.github.com/repos/SteveGilham/altcover/issues/26/events","html_url":"https://github.com/SteveGilham/altcover/issues/26","id":344180482,"node_id":"MDU6SXNzdWUzNDQxODA0ODI=","number":26,"title":"Common Language Runtime detected an invalid program","user":{"login":"latop2604","id":2058133,"node_id":"MDQ6VXNlcjIwNTgxMzM=","avatar_url":"https://avatars2.githubusercontent.com/u/2058133?v=4","gravatar_id":"","url":"https://api.github.com/users/latop2604","html_url":"https://github.com/latop2604","followers_url":"https://api.github.com/users/latop2604/followers","following_url":"https://api.github.com/users/latop2604/following{/other_user}","gists_url":"https://api.github.com/users/latop2604/gists{/gist_id}","starred_url":"https://api.github.com/users/latop2604/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/latop2604/subscriptions","organizations_url":"https://api.github.com/users/latop2604/orgs","repos_url":"https://api.github.com/users/latop2604/repos","events_url":"https://api.github.com/users/latop2604/events{/privacy}","received_events_url":"https://api.github.com/users/latop2604/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-24T19:54:43Z","updated_at":"2018-07-24T20:17:04Z","closed_at":null,"author_association":"NONE","body":"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\"\r\n\r\nBut half of my tests failed with the error message \"System.InvalidProgramException : Common Language Runtime detected an invalid program.\"\r\n\r\nAnd then the report can still be generated (reportgenerator) but is partial.\r\n\r\nI use theses commands : \r\n\r\n```bash\r\naltcover --opencover -o=__saved_cart --inplace -c=0 \"-c=[Fact]\" -x cart.opencover.xml -i api-cart/src/Cart.Tests/bin/Debug/netcoreapp2.1/ --fileFilter=Reference.cs\r\naltcover Runner -x dotnet -r api-cart/src/Cart.Tests/bin/Debug/netcoreapp2.1 -- test api-cart/src/Cart.Tests --no-build --no-restore\r\n```\r\n\r\n```\r\nNombre total de tests : 57. Réussis : 34. Non réussis : 23. Ignorés : 0.\r\nÉchec de la série de tests.\r\nDurée d'exécution des tests : 12,4410 Secondes\r\nGetting results...\r\n... /Users/xxx/xxx/cart.opencover.xml.0.acv (32 175b)\r\n13 420 visits recorded in 00:00:00.1235400 (108 629 visits/sec)\r\nA total of 13 420 visits recorded\r\nCoverage statistics flushing took 0,513 seconds\r\nVisited Classes 33 of 332 (9.94)\r\nVisited Methods 125 of 689 (18.14)\r\nVisited Points 510 of 4748 (10.74)\r\nVisited Branches 60 of 1512 (3.97)\r\n==== Alternative Results (includes all methods including those without corresponding source) ====\r\nAlternative Visited Classes 33 of 449 (7.35)\r\nAlternative Visited Methods 125 of 1135 (11.01)\r\n```\r\n\r\nIf a use the nuget package `AltCover` everything seem ok.\r\n"},"comment":{"url":"https://api.github.com/repos/SteveGilham/altcover/issues/comments/407537813","html_url":"https://github.com/SteveGilham/altcover/issues/26#issuecomment-407537813","issue_url":"https://api.github.com/repos/SteveGilham/altcover/issues/26","id":407537813,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzUzNzgxMw==","user":{"login":"SteveGilham","id":7460854,"node_id":"MDQ6VXNlcjc0NjA4NTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/7460854?v=4","gravatar_id":"","url":"https://api.github.com/users/SteveGilham","html_url":"https://github.com/SteveGilham","followers_url":"https://api.github.com/users/SteveGilham/followers","following_url":"https://api.github.com/users/SteveGilham/following{/other_user}","gists_url":"https://api.github.com/users/SteveGilham/gists{/gist_id}","starred_url":"https://api.github.com/users/SteveGilham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteveGilham/subscriptions","organizations_url":"https://api.github.com/users/SteveGilham/orgs","repos_url":"https://api.github.com/users/SteveGilham/repos","events_url":"https://api.github.com/users/SteveGilham/events{/privacy}","received_events_url":"https://api.github.com/users/SteveGilham/received_events","type":"User","site_admin":false},"created_at":"2018-07-24T20:17:04Z","updated_at":"2018-07-24T20:17:04Z","author_association":"OWNER","body":"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.\r\n\r\nMy 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 `-c` arguments).  "}}
{"actor":{"display_login":"SteveGilham"}}