-
Notifications
You must be signed in to change notification settings - Fork 759
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
Improving code coverage #939
Improving code coverage #939
Conversation
Codecov Report
@@ Coverage Diff @@
## master #939 +/- ##
==========================================
+ Coverage 66.31% 67.96% +1.64%
==========================================
Files 212 212
Lines 5994 5990 -4
Branches 967 967
==========================================
+ Hits 3975 4071 +96
+ Misses 1731 1641 -90
+ Partials 288 278 -10
|
@eddynaka Looks like some nice improvements to test coverage. I'm generally interested in the approach you're taking to identify things to improve? |
Hi @alanwest , i'm using two approaches: vs2019 style and codecov report. From codecov report (https://codecov.io/gh/open-telemetry/opentelemetry-dotnet/tree/feature%2Fimproving-codecoverage/src), we can see which files have the lowest coverage. With that in mind, i started to do that. |
One thing that i still couldn't figure out is how to test EventSource. Injecting all the cases are hard, but at least we had to check the event and writeevent values. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for doing this @eddynaka!
Cool, thanks for the tip! I'd clicked around codecov a bit, and was just curious about your workflow. |
@alanwest, do u know how to test the event sources somehow? |
Adding tests for zpages and hosting extensions Testing enableConnectionLevelAttributes from SqlClient updating assert Adding tests for SqlClientInstrumentationOptions removing extra test undoing changes updating changelog renaming file to be complicant with other exporters renaming files and adding more tests
@eddynaka Sorry for delay, just seeing this... Just to be sure, is it the SqlEventSourceTests tests you're looking at? I haven't spent a lot of time looking at this test suite, but I welcome the opportunity at familiarizing myself more! Can you point me to a specific test you'd like to improve? |
Fixes #.
Changes
For significant contributions please make sure you have completed the following items: