Copy xunit.runner.json to output directory so test settings are applied - #83
Merged
Merged
Conversation
…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
mattleibow
marked this pull request as ready for review
February 22, 2026 19:13
Test Results 4 files 4 suites 20m 42s ⏱️ Results for commit 2bcb42e. |
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.
Reviewed PR #56 (
feature/avd-enhancements, 37 files, 1351+/380-) againstmain. 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.jsonexists 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.
<None Update="xunit.runner.json"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory></None>toAndroidSdk.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.