- [x] Investigate if we can re-enable code coverage on internal builds We enabled it in #514, however Coverage option is disabled in the build pipeline - https://github.com/dotnet/winforms/blob/95e83ed6e86c93c10020a7c92a6c9d459f65f6a5/eng/pipelines/build.yml#L33. - [x] Generate list of controls with missing test coverage for public methods - [ ] Work with @Olina-Zhang's team on adding the missing scenarios Following controls are missing test coverage for public methods: **System.Windows.Forms** - [x] Button https://github.com/dotnet/winforms/pull/10693 - [x] CheckBox https://github.com/dotnet/winforms/pull/10693, https://github.com/dotnet/winforms/pull/11249 - [x] FlatButton https://github.com/dotnet/winforms/pull/10693, https://github.com/dotnet/winforms/pull/12882 - [x] RadioButton https://github.com/dotnet/winforms/pull/10693, https://github.com/dotnet/winforms/pull/11687 - [x] ComboBox https://github.com/dotnet/winforms/pull/11381, https://github.com/dotnet/winforms/pull/11533, https://github.com/dotnet/winforms/pull/11565, https://github.com/dotnet/winforms/pull/11699, https://github.com/dotnet/winforms/pull/12038 - [x] DataGridView https://github.com/dotnet/winforms/pull/11541, https://github.com/dotnet/winforms/pull/11556, https://github.com/dotnet/winforms/pull/11618, https://github.com/dotnet/winforms/pull/11691, https://github.com/dotnet/winforms/pull/12622, https://github.com/dotnet/winforms/pull/12814, https://github.com/dotnet/winforms/pull/12768, https://github.com/dotnet/winforms/pull/12766, https://github.com/dotnet/winforms/pull/12673 - [x] DateTimePicker https://github.com/dotnet/winforms/pull/11033, https://github.com/dotnet/winforms/pull/11106, https://github.com/dotnet/winforms/pull/11318, https://github.com/dotnet/winforms/pull/11385, https://github.com/dotnet/winforms/pull/11534, https://github.com/dotnet/winforms/pull/11463 - [x] GroupBox https://github.com/dotnet/winforms/pull/11688 - [x] Label https://github.com/dotnet/winforms/pull/10787, https://github.com/dotnet/winforms/pull/10976, https://github.com/dotnet/winforms/pull/11521 - [x] LinkLabel https://github.com/dotnet/winforms/pull/12572 - [x] CheckedListBox https://github.com/dotnet/winforms/pull/11265, https://github.com/dotnet/winforms/pull/11317, https://github.com/dotnet/winforms/pull/11384, https://github.com/dotnet/winforms/pull/11647 - [x] ListBox https://github.com/dotnet/winforms/pull/11624, https://github.com/dotnet/winforms/pull/11724,https://github.com/dotnet/winforms/pull/12952,https://github.com/dotnet/winforms/pull/12907, - [x] ListView https://github.com/dotnet/winforms/pull/11264, https://github.com/dotnet/winforms/pull/11380, https://github.com/dotnet/winforms/pull/11701 - [x] MenuStrip #2943 - [x] MonthCalendar https://github.com/dotnet/winforms/pull/11149, https://github.com/dotnet/winforms/pull/11217, https://github.com/dotnet/winforms/pull/11519, https://github.com/dotnet/winforms/pull/11619 - [x] ProgressBar https://github.com/dotnet/winforms/pull/11074 - [x] PropertyGrid https://github.com/dotnet/winforms/pull/11476, https://github.com/dotnet/winforms/pull/11587, https://github.com/dotnet/winforms/pull/11711 - [x] RichTextBox https://github.com/dotnet/winforms/pull/10994 https://github.com/dotnet/winforms/pull/10921 https://github.com/dotnet/winforms/pull/11034 - [x] MaskedTextBox https://github.com/dotnet/winforms/pull/10978, https://github.com/dotnet/winforms/pull/11231, https://github.com/dotnet/winforms/pull/11286, https://github.com/dotnet/winforms/pull/11376 - [x] TextBox https://github.com/dotnet/winforms/pull/11021 - [x] ToolStrip https://github.com/dotnet/winforms/pull/11464, https://github.com/dotnet/winforms/pull/11848, https://github.com/dotnet/winforms/pull/11773, https://github.com/dotnet/winforms/pull/11848, https://github.com/dotnet/winforms/pull/11887, https://github.com/dotnet/winforms/pull/12111, https://github.com/dotnet/winforms/pull/12082, https://github.com/dotnet/winforms/pull/12043, https://github.com/dotnet/winforms/pull/11999, https://github.com/dotnet/winforms/pull/11887, https://github.com/dotnet/winforms/pull/12238, https://github.com/dotnet/winforms/pull/12166, https://github.com/dotnet/winforms/pull/12347, https://github.com/dotnet/winforms/pull/12316, https://github.com/dotnet/winforms/pull/12394, https://github.com/dotnet/winforms/pull/12736 - [x] TrackBar https://github.com/dotnet/winforms/pull/11066, https://github.com/dotnet/winforms/pull/11397, https://github.com/dotnet/winforms/pull/12427 - [x] TreeView https://github.com/dotnet/winforms/pull/11293, https://github.com/dotnet/winforms/pull/11361, https://github.com/dotnet/winforms/pull/11686,https://github.com/dotnet/winforms/pull/12908 - [x] DomainUpDown https://github.com/dotnet/winforms/pull/11331 - [x] WebBrowser https://github.com/dotnet/winforms/pull/10755 - [x] NumericUpDown https://github.com/dotnet/winforms/pull/11522
We enabled it in Establish Code Coverage for WinForms testing #514, however Coverage option is disabled in the build pipeline -
winforms/eng/pipelines/build.yml
Line 33 in 95e83ed
Following controls are missing test coverage for public methods:
System.Windows.Forms
Add test coverage for CheckedListBox.CheckedItemCollection and CheckedIndexCollection #11384, Add unit tests for CheckedListBox and CheckedListBox.CheckedListBoxItemAccessibleObject #11647
Add code coverage for RichTextBox #10921
Add code coverage for RichTextBox #11034