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 code coverage for System.ComponentModel.TypeConverter (56%) #16988

Closed
chlowell opened this issue Apr 14, 2016 · 9 comments
Closed

Improve code coverage for System.ComponentModel.TypeConverter (56%) #16988

chlowell opened this issue Apr 14, 2016 · 9 comments
Labels
area-System.ComponentModel good first issue Issue should be easy to implement, good for first-time contributors help wanted [up-for-grabs] Good issue for external contributors increase-code-coverage Tracking need to add more test and increase code coverage of a component test-enhancement Improvements of test source code

Comments

@chlowell
Copy link
Member

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 around TypeDescriptor. The largest gaps in its coverage are in private code requiring more elaborate scenarios to reach than what we have in unit tests.

@hughbe
Copy link
Contributor

hughbe commented Apr 16, 2016

I might be misunderstanding something here: I ran the coverage report for System.ComponentModel.TypeConverter and got 88% line and 83% branch coverage

Report Summary

coverage

@Clockwork-Muse
Copy link
Contributor

...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 OuterLoop was used, since that may also have an effect.

@chlowell
Copy link
Member Author

Sorry, I should have been more clear: we're at 47% coverage for the next version of the package, which currently lives in dev/typedescriptor.

@chlowell chlowell assigned chlowell and unassigned Tanya-Solyanik Apr 18, 2016
@danmoseley danmoseley changed the title Improve code coverage for System.ComponentModel.TypeConverter Improve code coverage for System.ComponentModel.TypeConverter (24%) Feb 21, 2017
@danmoseley
Copy link
Member

danmoseley commented Feb 21, 2017

@WinCPP
Copy link
Contributor

WinCPP commented Mar 26, 2017

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!

@danmoseley
Copy link
Member

@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:
https://github.com/dotnet/corefx/issues/16650
https://github.com/dotnet/corefx/issues/16649
https://github.com/dotnet/corefx/issues/16646

and others
https://github.com/dotnet/corefx/labels/increase-code-coverage

Up you you -- all is welcome.

As you may know here's the all up report
https://ci.dot.net/job/dotnet_corefx/job/master/job/code_coverage_windows/Code_Coverage_Report/
Big caveat- doesn't show coverage of any types whose implementation is in corelib (eg STring, etc). If you want to look at that for now you must gather manually using instructions below.

Docs on code coverage work are here
https://github.com/dotnet/corefx/blob/master/Documentation/building/code-coverage.md
and some in
https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/developer-guide.md

Let us know if you want an assignment!

@WinCPP
Copy link
Contributor

WinCPP commented Mar 28, 2017

@danmosemsft Thanks for the reply. I think I will take a stab at dotnet/corefx#16646. Will continue more on that thread... Thanks!

@pjanotti pjanotti changed the title Improve code coverage for System.ComponentModel.TypeConverter (24%) Improve code coverage for System.ComponentModel.TypeConverter (56%) Aug 10, 2018
devtwogenies referenced this issue in devtwogenies/corefx Nov 9, 2019
safern referenced this issue in dotnet/corefx Nov 12, 2019
* add MaskedTextProviderTests(#7758)

* Code review issues are fixed
@msftgits msftgits transferred this issue from dotnet/corefx Jan 31, 2020
@msftgits msftgits added this to the Future milestone Jan 31, 2020
@maryamariyan maryamariyan added the untriaged New issue has not been triaged by the area owner label Feb 23, 2020
@ericstj ericstj removed the untriaged New issue has not been triaged by the area owner label Jul 1, 2020
Copy link
Contributor

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.

@dotnet-policy-service dotnet-policy-service bot added backlog-cleanup-candidate An inactive issue that has been marked for automated closure. no-recent-activity labels Jan 1, 2025
Copy link
Contributor

This issue will now be closed since it had been marked no-recent-activity but received no further activity in the past 14 days. It is still possible to reopen or comment on the issue, but please note that the issue will be locked if it remains inactive for another 30 days.

@dotnet-policy-service dotnet-policy-service bot removed this from the Future milestone Jan 15, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Feb 14, 2025
@dotnet-policy-service dotnet-policy-service bot removed no-recent-activity backlog-cleanup-candidate An inactive issue that has been marked for automated closure. labels Feb 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.ComponentModel good first issue Issue should be easy to implement, good for first-time contributors help wanted [up-for-grabs] Good issue for external contributors increase-code-coverage Tracking need to add more test and increase code coverage of a component test-enhancement Improvements of test source code
Projects
None yet
Development

No branches or pull requests

9 participants