-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 code coverage for System.ComponentModel.TypeConverter (56%) #16988
Comments
...given that there are platform-specific tests and behaviors (in general, I don't know about this specific case), perhaps it should be stated up front if the given library does any of that, or what the platform was. Oh, and if |
Sorry, I should have been more clear: we're at 47% coverage for the next version of the package, which currently lives in |
The coverage is only 24% https://ci.dot.net/job/dotnet_corefx/job/master/job/code_coverage_windows/Code_Coverage_Report/ |
I have not yet tried test enhancements for code coverage. Given that background, I would like to try writing a few for this issue. May I? Per the link that @danmosemsft shared above, current coverage is 36.4% (Line) and 27.4% (Branch) for TypeDescriptor. @chlowell mentiones about 47% in dev/typedescriptor, but in next version of the package (not sure if I understand that clearly). Am I on the verge of duplicating the efforts if I don't refer to next version coverage...? Thanks! |
@WinCPP you're welcome. I would say some code coverage exercises are probably higher importance than ComponentModel though. Places where coverage is even lower, or type usage is higher. For example XML is huge, heavily used and not got great coverage in some places: and others Up you you -- all is welcome. As you may know here's the all up report Docs on code coverage work are here Let us know if you want an assignment! |
@danmosemsft Thanks for the reply. I think I will take a stab at dotnet/corefx#16646. Will continue more on that thread... Thanks! |
* add MaskedTextProviderTests(#7758) * Code review issues are fixed
Due to lack of recent activity, this issue has been marked as a candidate for backlog cleanup. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process. This process is part of our issue cleanup automation. |
This issue will now be closed since it had been marked |
The code coverage report shows us at 47% for the next version of the package (currently in
dev/typedescriptor
). Improving this will mostly require work aroundTypeDescriptor
. The largest gaps in its coverage are in private code requiring more elaborate scenarios to reach than what we have in unit tests.The text was updated successfully, but these errors were encountered: