Skip to content

CI validation for xUnit v3 (#177) - #183

Merged
mpaulosky merged 3 commits into
sprint/8-xunit-v3-pilotfrom
squad/177-ci-validate-xunit-v3
Apr 26, 2026
Merged

CI validation for xUnit v3 (#177)#183
mpaulosky merged 3 commits into
sprint/8-xunit-v3-pilotfrom
squad/177-ci-validate-xunit-v3

Conversation

@mpaulosky

Copy link
Copy Markdown
Owner

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

Step Result Notes
dotnet restore ✅ PASS All packages resolved
dotnet build --configuration Release ✅ PASS 0 errors, 306 pre-existing warnings (CA2007/CA1707 in integration tests — not xunit-related, pre-existing)
dotnet test tests/Architecture.Tests ✅ PASS 11/11 tests passed
dotnet test tests/Domain.Tests ✅ PASS 42/42 tests passed

Workflow Assessment

Workflow Behaviour Status
squad-ci.yml Build-only gate on PR to dev/main ✅ No changes needed
squad-preview.yml Full test suite on push to dev ⚠️ Domain.Tests was missing — added

Workflow Change

squad-preview.yml — Added dotnet test tests/Domain.Tests to 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.0 and xunit.runner.visualstudio 3.1.5 (already centralized in Directory.Packages.props). No runner configuration changes required beyond the xunit.runner.json added in #176.

⚠️ This task was flagged as "needs review" — please have a squad member review before merging (CI workflow changes affect all contributors).

Boromir and others added 2 commits April 26, 2026 06:12
…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>
Copilot AI review requested due to automatic review settings April 26, 2026 13:13
@github-actions github-actions Bot added the squad Squad triage inbox — Lead will assign to a member label Apr 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🏗️ PR Added to Squad Triage Queue

This PR has been labeled with squad and added to the triage queue.

Next steps:

  • The squad Lead will review and assign to an appropriate team member
  • A squad:member label will be added after triage

If you know which squad member should handle this, you can add the appropriate squad:member label yourself.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mpaulosky
mpaulosky merged commit 5f1f102 into sprint/8-xunit-v3-pilot Apr 26, 2026
3 checks passed
@mpaulosky
mpaulosky deleted the squad/177-ci-validate-xunit-v3 branch April 26, 2026 13:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.json to Architecture.Tests and ensured it’s copied to the test output.
  • Updated Architecture.Tests package references to use xunit.v3 (and analyzers) instead of xunit.
  • Updated squad-preview.yml to include dotnet test for tests/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

codecov Bot commented Apr 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.53%. Comparing base (29415ad) to head (f1b15f8).
⚠️ Report is 2 commits behind head on sprint/8-xunit-v3-pilot.

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:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

squad Squad triage inbox — Lead will assign to a member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants