Code coverage is flaky, throws missing method exceptions
See original GitHub issueSee the results here: https://dev.azure.com/dotnet/Rx.NET/_build/results?buildId=10312
It’s throwing errors like
Error Message:
System.MissingMethodException : Method not found: 'Void Microsoft.VisualStudio.CodeCoverage.Shim.135762730__coverage_runtime_method__6817_16922__(UInt64)'.
Stack Trace:
at System.Linq.AsyncEnumerable.ToAsyncEnumerable[TSource](IEnumerable`1 source)
at Tests.AsyncQueryableExTests.<>c.<MinAsync14>b__188_2() in D:\a\1\s\Ix.NET\Source\System.Linq.Async.Queryable.Tests\AsyncQueryableTests.Generated.cs:line 1962
at Tests.AssertEx.Throws[T](Action action, Func`2 assert) in D:\a\1\s\Ix.NET\Source\System.Linq.Async.Queryable.Tests\AssertEx.cs:line 19
at Tests.AsyncQueryableExTests.MinAsync14() in D:\a\1\s\Ix.NET\Source\System.Linq.Async.Queryable.Tests\AsyncQueryableTests.Generated.cs:line 1964
Other times it works.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Code coverage for lines following methods that always ...
I understand that 100% code coverage is just a goal to shoot for, but it's annoying to have a line containing a closing...
Read more >We Have A Flaky Test Problem
We define a “flaky” test result as a test that exhibits both a passing and a failing result with the same code. At...
Read more >Unexpected Coverage Changes
There are many reasons why coverage may change in unexpected ways. Codecov analyzes the pull/commit diff, detecting coverage changes on both lines of...
Read more >Incorrect coverage on call to method that throws an exception
The following code shows partial branch coverage on the if-block and no coverage on the call to throwIllegalArgumentException.
Read more >JUnit 5 User Guide
Denotes that a method is a test method. Unlike JUnit 4's @Test annotation, this annotation does not declare any attributes, since test ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@juanperezADD can you please create a new bug, & mention the repro steps, we track these issues internally as well, & reopening long closed bugs, tends to mess up our tracking.
@mayankbansal018 I have created the issue #2176.