Repository navigation
[Tests] Improve test coverage - #5438
Merged
Vincent Baaij (vnbaaij) merged 11 commits intoOct 13, 2026
Merged
Conversation
Vincent Baaij (vnbaaij)
requested a review
from Denis Voituron (dvoituron)
as a code owner
October 12, 2026 14:34
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Several tests do not verify their stated behavior, and multi-target coverage totals double-count source lines.
5 open findings
Coverage totals double-count lines across framework reports · New Accessible name assertion omits the required indicator · New Resize keyboard test does not verify options were opened · New Field change test lacks an EditContext and notification assertion · New Fallback icon assertion does not verify the rendered icon · New
What changed in this PR
Adds unit tests across core components and utilities, plus enhanced local coverage reporting.
Changes:
- Expands component and utility test coverage.
- Adds edge-case and fallback-path tests.
- Runs coverage in Release and reports results by type.
| File | Description |
|---|---|
tests/Core/Utilities/RangeOfTests.cs |
Tests range operations and boundaries. |
tests/Core/Components/Wizard/FluentWizardAdvancedTests.razor |
Tests invalid wizard status fallback. |
tests/Core/Components/Themes/ThemeTests.cs |
Tests null JSON payloads. |
tests/Core/Components/MessageBar/MessageBarInstanceTests.cs |
Tests lifetime cancellation after disposal. |
tests/Core/Components/List/FluentListboxTests.razor |
Expands listbox behavior coverage. |
tests/Core/Components/Layout/FluentLayoutTests.razor |
Tests deferred mobile navigation. |
tests/Core/Components/Forms/FluentValidationMessageTests.cs |
Tests null validation icons. |
tests/Core/Components/ErrorBoundary/FluentErrorBoundaryTests.razor |
Tests recovery after disposal. |
tests/Core/Components/Dialog/DialogOptionsTests.cs |
Tests factory-based dialog options. |
tests/Core/Components/DateTimes/Utilities/RangeOfDatesTests.cs |
Tests unknown calendar views. |
tests/Core/Components/DateTimes/FluentDatePickerTests.razor |
Tests month-change callbacks. |
tests/Core/Components/DateTimes/FluentCalendarTests.razor |
Tests hovering disabled dates. |
tests/Core/Components/DataGrid/SelectColumnTests.razor |
Expands selection and comparer coverage. |
tests/Core/Components/DataGrid/GridSortTests.cs |
Expands sorting and hierarchy coverage. |
tests/Core/Components/DataGrid/FluentDataGridTests.razor |
Tests validation, menus, and loading. |
tests/Core/Components/DataGrid/FluentDataGridCellTests.razor |
Formatting-only change. |
tests/Core/Components/DataGrid/ColumnKeyGridSortTests.cs |
Tests sort direction mapping. |
tests/Core/Components/Button/FluentButtonTests.razor |
Tests unsupported toggle loading. |
tests/Core/Components/Base/InputBaseTests.cs |
Tests required accessible labels. |
tests/_StartCodeCoverage.ps1 |
Adds per-type coverage reporting. |
🧠 Review effort: Balanced
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
✅ All tests passed successfully Details on your Workflow / Core Tests page. |
Summary - Unit Tests Code CoverageSummary
CoverageMicrosoft.FluentUI.AspNetCore.Components - 98.6%
Microsoft.FluentUI.AspNetCore.Components.Charts - 100%
|
Denis Voituron (dvoituron)
requested changes
Oct 12, 2026
Vincent Baaij (vnbaaij)
enabled auto-merge (squash)
October 12, 2026 15:46
Denis Voituron (dvoituron)
requested changes
Oct 13, 2026
Denis Voituron (dvoituron)
approved these changes
Oct 13, 2026
Vincent Baaij (vnbaaij)
disabled auto-merge
October 13, 2026 12:11
Vincent Baaij (vnbaaij)
deleted the
users/vnbaaij/improve-test-coverage
branch
October 13, 2026 12:11
This was referenced Oct 14, 2026
This was referenced Oct 19, 2026
Closed
Closed
This was referenced Oct 28, 2026
Merged
Closed
This was referenced Nov 9, 2026
This was referenced Nov 19, 2026
Merged
Closed
This was referenced Nov 27, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Add extra unit test to improve line and branch coverage