Skip to content
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

Improve lambda scenario coverage #583

Merged
merged 2 commits into from
Oct 9, 2019

Conversation

MarcoRossignoli
Copy link
Collaborator

@MarcoRossignoli MarcoRossignoli commented Oct 8, 2019

contributes to #343

This code fix the issue of "false covered lines/branches" for lambda and async lambda bit complex scenario.

Capture

We've again some issue with unexpected reported branch, but for now is better than nothing.
Other solution I found trim out valid branches so for now I prefer false positive uncovered branch than covered.

cc: @driseley @tonerdo @petli @SteveGilham

@daveMueller take a look if you're interested in the intrumentation part, you can start from test, are debuggable pass true to TestInstrumentationHelper.Run(.,disableRestoreModule and RemoteExecutor.Invoke(...,invokeLocal), if you're in throuble let me know.

@@ -363,4 +432,23 @@ public void LogWarning(string message)
File.AppendAllText(_logFile, message + Environment.NewLine);
}
}

class InstrumentationHelperForDebugging : InstrumentationHelper
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shargon I did this to avoid restore and make instrumentation completely debuggable

@MarcoRossignoli MarcoRossignoli added bug Something isn't working tenet-coverage Issue related to possible incorrect coverage labels Oct 8, 2019
@MarcoRossignoli MarcoRossignoli merged commit f3cce5d into coverlet-coverage:master Oct 9, 2019
@MarcoRossignoli MarcoRossignoli deleted the lambda branch October 9, 2019 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tenet-coverage Issue related to possible incorrect coverage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant