CI validation for xUnit v3 (#177) - #183
Merged
mpaulosky merged 3 commits intoApr 26, 2026
Merged
Conversation
…Tests pilot) — closes #176 - Replace xunit 2.x PackageReference with xunit.v3 (3.2.2, centralized in Directory.Packages.props) - Add xunit.analyzers PackageReference (version 1.27.0 centralized) - Add xunit.runner.json matching Domain.Tests Sprint 7 pilot config - No version pins in .csproj — all versions remain in Directory.Packages.props Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
CI validation findings (local): - Build: PASS — 0 errors, 306 pre-existing warnings (CA2007/CA1707 in integration tests, not xunit-related) - Architecture.Tests (xunit.v3 3.2.2): 11/11 PASSED - Domain.Tests (xunit.v3 3.2.2, Sprint 7 pilot): 42/42 PASSED Workflow change: - Add Domain.Tests to squad-preview.yml test matrix (Sprint 7 pilot was missing from CI gate) - Architecture.Tests was already in squad-preview.yml, now runs with xunit.v3 No adjustments needed to squad-ci.yml (build-only gate — correct behaviour for PR validation). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
🏗️ PR Added to Squad Triage QueueThis PR has been labeled with Next steps:
|
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Validates and updates CI to run cleanly with xUnit v3 by ensuring the necessary test runner configuration is present and the Domain test project is included in the dev-branch validation workflow.
Changes:
- Added
xunit.runner.jsontoArchitecture.Testsand ensured it’s copied to the test output. - Updated
Architecture.Testspackage references to usexunit.v3(and analyzers) instead ofxunit. - Updated
squad-preview.ymlto includedotnet testfortests/Domain.Tests.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
tests/Architecture.Tests/xunit.runner.json |
Introduces xUnit runner configuration consistent with other test projects (parallelization, method display). |
tests/Architecture.Tests/Architecture.Tests.csproj |
Switches Architecture.Tests to xUnit v3 packages and copies xunit.runner.json to output. |
.github/workflows/squad-preview.yml |
Adds Domain.Tests execution to the dev-branch preview validation workflow. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## sprint/8-xunit-v3-pilot #183 +/- ##
========================================================
Coverage 72.53% 72.53%
========================================================
Files 43 43
Lines 721 721
Branches 112 112
========================================================
Hits 523 523
Misses 149 149
Partials 49 49 🚀 New features to boost your workflow:
|
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.
Summary
Closes #177
Working as Boromir (DevOps Engineer)
Validates CI passes cleanly with xUnit v3 packages in Architecture.Tests (from #176) and Domain.Tests (Sprint 7 pilot).
CI Validation Findings
Local Build & Test Results
dotnet restoredotnet build --configuration Releasedotnet test tests/Architecture.Testsdotnet test tests/Domain.TestsWorkflow Assessment
squad-ci.ymlsquad-preview.ymlWorkflow Change
squad-preview.yml— Addeddotnet test tests/Domain.Teststo the test matrix. The Sprint 7 Domain.Tests pilot was missing from CI gate despite being the reference implementation. Architecture.Tests was already present and now validates with xunit.v3.No Adjustments Needed
xUnit v3 3.2.2 works drop-in with
Microsoft.NET.Test.Sdk 18.5.0andxunit.runner.visualstudio 3.1.5(already centralized inDirectory.Packages.props). No runner configuration changes required beyond thexunit.runner.jsonadded in #176.