question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Code coverage is flaky, throws missing method exceptions

See original GitHub issue

See 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:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mayankbansal018commented, Sep 16, 2019

@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.

0reactions
juanperezADDcommented, Sep 16, 2019

@mayankbansal018 I have created the issue #2176.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found