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

Add tests for VB runtime also fixes #5179 and uses Fluent Assertions #11655

Closed

Conversation

paul1956
Copy link
Contributor

@paul1956 paul1956 commented Jul 11, 2024

Adds tests to VB Runtime (changes to ExceptionUtils, Utils and Network were unavoidable because of conflict between Utils conflicting with Utils.

Proposed changes

Add tests for
Assembly Public Key Is As Expected - used in other tests
Clipboard Proxy
Computer Info and Debug View
Enhance Control Tests to support new Project Level Options
A few Exception Tests more will be added with future PR
File IO Proxy Tests
Network Download
Single Instance Helpers
Temp Directory File Functions used by new tests
General new utilities use by tests
Time
User Tests
Web Listener Service

Customer Impact

Improve code quality via additional tests

Regression?

  • No

Risk

None - only additional tests

Test methodology

All the tests pass (though clipboard tests may fail randomly)

Test environment(s)

Visual Studio

Microsoft Reviewers: Open in CodeFlow

Ricardo Bossan (BEYONDSOFT CONSULTING INC) (from Dev Box) and others added 5 commits May 23, 2024 21:55
…ightToLeft mode, both with VisualStyles enabled or disabled
# IDE0001: severity = silent
# IDE0002: severity = silent
… and Network will be completely rewritten as part of code Cleanup PR
@paul1956 paul1956 requested a review from a team as a code owner July 11, 2024 07:43
Copy link

codecov bot commented Jul 11, 2024

Codecov Report

Attention: Patch coverage is 80.90339% with 761 lines in your changes missing coverage. Please review.

Project coverage is 75.07733%. Comparing base (f53f153) to head (b73a5d1).
Report is 301 commits behind head on feature/10.0.

Additional details and impacted files
@@                  Coverage Diff                   @@
##           feature/10.0      #11655         +/-   ##
======================================================
+ Coverage      74.29395%   75.07733%   +0.78338%     
======================================================
  Files              3026        3065         +39     
  Lines            627152      632677       +5525     
  Branches          46758       46784         +26     
======================================================
+ Hits             465936      474997       +9061     
+ Misses           157863      154311       -3552     
- Partials           3353        3369         +16     
Flag Coverage Δ
Debug 75.07733% <80.90339%> (+0.78338%) ⬆️
integration 17.82917% <5.61535%> (-0.16097%) ⬇️
production 48.19558% <64.81048%> (+1.16530%) ⬆️
test 97.02284% <99.51299%> (+0.03516%) ⬆️
unit 45.30979% <60.64577%> (+1.29822%) ⬆️

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

@elachlan elachlan added the waiting-review This item is waiting on review by one or more members of team label Jul 11, 2024
@@ -15,6 +15,7 @@
namespace System.Windows.Forms.Tests;

[Collection("Sequential")]
[CollectionDefinition("Sequential", DisableParallelization = true)]
Copy link
Member

Choose a reason for hiding this comment

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

I believe we had decided against this change in #11530

Copy link
Contributor Author

@paul1956 paul1956 Jul 12, 2024

Choose a reason for hiding this comment

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

@lonitra Then the test reliably fail. It might mean these tests need to move with your other Clipboard tests.
Don't know what to do with tests written in VB that fail without this.
Documentation says this forces tests in this class to run sequentially after all other tests.

paul1956 and others added 22 commits August 8, 2024 19:38
[main] Update dependencies from dotnet/arcade
[main] Update dependencies from dotnet/runtime
Re-add condition to check drag image
[main] Update dependencies from dotnet/runtime
Correct logic in DriveProxyTest and FileNormalizePathTest_Success
[main] Update dependencies from dotnet/runtime
* Implement Control.Async.
* Introduce Form.ShowAsync.
* Introduce Form.ShowDialogAsync.
* Introduce TaskDialog.ShowDialogAsync.
* Fix setting correct TaskCompletionSource on Closing/Disposing.
* Address review feedback.
Pulled from https://github.com/dotnet/winforms/pull/10985/files. Styling features and non-critical changes were stripped out to make this the smallest change possible.
- Move Experimental URL to DiagnosticIds
- Move special dark mode logic from CreateBrushScope to GetSysColorBrush
- Remove unnecessary logic in FindNearestColor
- Update brushes and pens by poking SystemEvents static directly
…dotnet#11785)

* Add a manual test case for clones ListViewItem to WinformsControlsApp

* Settle comments

---------

Co-authored-by: Simon Zhao (BEYONDSOFT CONSULTING INC) <[email protected]>
@paul1956
Copy link
Contributor Author

Replaced by #11863

@paul1956 paul1956 closed this Aug 13, 2024
@dotnet-policy-service dotnet-policy-service bot removed the waiting-review This item is waiting on review by one or more members of team label Aug 13, 2024
@paul1956 paul1956 deleted the Add-Tests-for-VB-Runtime-Review-2nd branch August 13, 2024 06:51
@github-actions github-actions bot locked and limited conversation to collaborators Sep 13, 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.