Skip to content

Conversation

@MelonWang1
Copy link
Contributor

@MelonWang1 MelonWang1 commented Mar 12, 2025

Related #10773

Proposed changes

  • Add unit test StatusCommandUITests.cs for public method of the StatusCommandUI.
Microsoft Reviewers: Open in CodeFlow

@MelonWang1 MelonWang1 requested a review from a team as a code owner March 12, 2025 06:04
Copy link
Member

@LeafShi1 LeafShi1 left a comment

Choose a reason for hiding this comment

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

LGTM with one little suggestion

@LeafShi1 LeafShi1 requested a review from Copilot March 12, 2025 06:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds unit tests for the public method of StatusCommandUI to verify correct interactions with the command service under various input scenarios.

  • Introduces tests for null components, standard controls, custom components, and explicit rectangle parameters.
  • Verifies that command invocations are made with the correct rectangle values based on the input.

@codecov
Copy link

codecov bot commented Mar 12, 2025

Codecov Report

Attention: Patch coverage is 97.33333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 61.35586%. Comparing base (8691d0e) to head (46672bb).
Report is 46 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                 @@
##                main      #13121         +/-   ##
===================================================
+ Coverage   61.28152%   61.35586%   +0.07433%     
===================================================
  Files           1541        1547          +6     
  Lines         158281      158482        +201     
  Branches       14743       14752          +9     
===================================================
+ Hits           96997       97238        +241     
+ Misses         60587       60542         -45     
- Partials         697         702          +5     
Flag Coverage Δ
Debug 61.35586% <97.33333%> (+0.07433%) ⬆️
integration 10.73151% <ø> (-0.00202%) ⬇️
production 39.22790% <ø> (+0.08292%) ⬆️
test 95.67947% <97.33333%> (+0.00345%) ⬆️
unit 36.66044% <ø> (+0.08865%) ⬆️

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

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@Tanya-Solyanik Tanya-Solyanik left a comment

Choose a reason for hiding this comment

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

Looks good, I added some minot comments

Copy link
Contributor

@Tanya-Solyanik Tanya-Solyanik left a comment

Choose a reason for hiding this comment

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

Thank you!

@Tanya-Solyanik Tanya-Solyanik merged commit 397562b into dotnet:main Mar 13, 2025
8 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0 Preview3 milestone Mar 13, 2025
@MelonWang1 MelonWang1 deleted the Add_unit_tests_for_StatusCommandUI branch March 14, 2025 01:15
@github-actions github-actions bot locked and limited conversation to collaborators Apr 13, 2025
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