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

Mark Test Utilities As Packable Nonshipping #12407

Merged
merged 7 commits into from
Nov 1, 2024
Merged

Conversation

lonitra
Copy link
Member

@lonitra lonitra commented Oct 30, 2024

Mark some of our test utilities in a project that is packable nonshipping in preparation to share this with WPF. In this PR I've:

  • Moved winforms specific test utilities out to the respective test utility assembly they were being used in which for the most part was System.Windows.Forms.TestUtilities
  • Renamed System.Windows.Forms.Common.TestUtilities to System.Private.Windows.Core.TestUtilities to match our already shared assembly System.Private.Windows.Core
  • Added/updated documentation for remaining classes/methods in System.Private.Windows.Core.TestUtilities

Next step here is to investigate if it is possible to have documentation for classes/methods in our shared assembly show up in intellisense within WPF repo but keep it out of windowsdesktop. Currently developers need to navigate via F12 to see any documentation for System.Private.Windows.Core.

Microsoft Reviewers: Open in CodeFlow

@lonitra lonitra requested a review from a team as a code owner October 30, 2024 23:54
@@ -1,9 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>System.Windows.Forms.Common.TestUtilities</AssemblyName>
<AssemblyName>System.Private.Windows.Core.TestUtilities</AssemblyName>
Copy link
Member

Choose a reason for hiding this comment

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

Are you going to rename the folder in a separate PR to preserve history?

Copy link
Member Author

Choose a reason for hiding this comment

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

Right now this assembly lives under the test folder. I was not planning to rename it as I think it should still be there.

Copy link
Member

Choose a reason for hiding this comment

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

I meant the common folder

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah I see. I think the folder name is still applicable, but I'm open to renaming.

@lonitra lonitra changed the title Include Test Utilities in Microsoft.Private.Winforms Mark Test Utilities As Packable Nonshipping Oct 31, 2024
Copy link

codecov bot commented Oct 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.63612%. Comparing base (d223c9e) to head (a0eaa37).
Report is 8 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                  @@
##                main      #12407          +/-   ##
====================================================
+ Coverage   49.20480%   75.63612%   +26.43132%     
====================================================
  Files           1985        3147        +1162     
  Lines         283954      635806      +351852     
  Branches       41730       47012        +5282     
====================================================
+ Hits          139719      480899      +341180     
- Misses        141535      151458        +9923     
- Partials        2700        3449         +749     
Flag Coverage Δ
Debug 75.63612% <100.00000%> (+26.43132%) ⬆️
integration 18.24013% <ø> (-0.01159%) ⬇️
production 49.15962% <ø> (-0.04519%) ⬇️
test 97.03085% <100.00000%> (?)
unit 46.13980% <ø> (-0.05184%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@lonitra lonitra merged commit 3c1c69c into dotnet:main Nov 1, 2024
8 checks passed
@lonitra lonitra deleted the sharetest branch November 1, 2024 04:29
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0 Preview1 milestone Nov 1, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Dec 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants