Skip to content

Copy xunit.runner.json to output directory so test settings are applied - #83

Merged
mattleibow merged 2 commits into
mainfrom
copilot/improve-main-with-pr56
Feb 23, 2026
Merged

mattleibow merged 2 commits into
mainfrom
copilot/improve-main-with-pr56

Conversation

Copilot AI commented Feb 22, 2026 •

Copy link
Copy Markdown
Contributor

Reviewed PR #56 (feature/avd-enhancements, 37 files, 1351+/380-) against main. All major features — emulator lifecycle improvements, new device commands, test infrastructure, workflow upgrades — have already been merged through prior split PRs.

One remaining fix: xunit.runner.json exists in the project root with critical settings but was never copied to the output directory. xunit 2.x only discovers config from the assembly output directory, so these settings were silently ignored:

{
  "parallelizeTestCollections": false,
  "maxParallelThreads": 1,
  "diagnosticMessages": true,
  "longRunningTestSeconds": 5
}

This matters because the test suite manipulates shared environment variables and SDK state — parallel execution causes flaky failures.

  • Added <None Update="xunit.runner.json"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory></None> to AndroidSdk.Tests.csproj

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…e applied

The xunit.runner.json file already existed in the project root with important
settings (parallelizeTestCollections: false, maxParallelThreads: 1,
diagnosticMessages: true, longRunningTestSeconds: 5) but was missing the
CopyToOutputDirectory directive in the csproj. Without this, xunit 2.x
silently ignores the configuration file since it only looks for it in the
assembly output directory.

This was identified as the one remaining improvement from PR #56
(feature/avd-enhancements) that hadn't already been incorporated into main.

Co-authored-by: mattleibow <1096616+mattleibow@users.noreply.github.com>
Copilot AI changed the title [WIP] Update main branch based on improvements from PR #56 Copy xunit.runner.json to output directory so test settings are applied Feb 22, 2026
Copilot AI requested a review from mattleibow February 22, 2026 18:11
@mattleibow
mattleibow marked this pull request as ready for review February 22, 2026 19:13
@github-actions

Copy link
Copy Markdown

Test Results

  4 files    4 suites   20m 42s ⏱️
103 tests 100 ✅ 3 💤 0 ❌
206 runs  200 ✅ 6 💤 0 ❌

Results for commit 2bcb42e.

@mattleibow
mattleibow merged commit df03caa into main Feb 23, 2026
7 checks passed
@mattleibow
mattleibow deleted the copilot/improve-main-with-pr56 branch February 23, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants