Skip to content

Unit test platform updates#456

Merged
waf merged 2 commits into
mainfrom
new-test-infrastructure
May 30, 2026
Merged

Unit test platform updates#456
waf merged 2 commits into
mainfrom
new-test-infrastructure

Conversation

@waf
Copy link
Copy Markdown
Owner

@waf waf commented May 30, 2026

A bit of modernization in the tests:

  • xunit 2 to xunit.v3.mtp-v2 + Microsoft Testing Platform changes
    • There is a new warning to solve, xUnit1051. I put that in a separate commit.
  • coverlet -> Microsoft.Testing.Extensions.CodeCoverage
  • remove need to set DOTNET_CLI_USE_MSBUILD_SERVER / MSBUILDDISABLENODEREUSE
    • I think this is no longer required given the move the MTPv2 + I cleaned up some console input redirection issues in the unit tests. These redirection issues might have been the real root cause for hanging tests.
  • Migrate to slnx

waf added 2 commits May 30, 2026 20:24
Move to:

- xunit + Microsoft Testing Platform v2
- Microsoft.Testing.Extensions.CodeCoverage
- remove need to set DOTNET_CLI_USE_MSBUILD_SERVER / MSBUILDDISABLENODEREUSE
   - I think this is no longer required given the move the MTPv2 and also I cleaned up some console input redirection issues in the unit tests. These redirection issues might have been the real root cause for hanging tests.
- Migrate to slnx
Calls to methods which accept CancellationToken should use TestContext.Current.CancellationToken
@codecov
Copy link
Copy Markdown

codecov Bot commented May 30, 2026

Codecov Report

❌ Patch coverage is 87.50000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 71.2%. Comparing base (1a8f551) to head (dd9308c).

Files with missing lines Patch % Lines
CSharpRepl/Program.cs 87.5% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##            main    #456     +/-   ##
=======================================
+ Coverage   70.8%   71.2%   +0.3%     
=======================================
  Files         90      94      +4     
  Lines       6834    6793     -41     
  Branches     937    1003     +66     
=======================================
- Hits        4842    4837      -5     
+ Misses      1640    1626     -14     
+ Partials     352     330     -22     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@waf waf merged commit db0f616 into main May 30, 2026
3 checks passed
@waf waf deleted the new-test-infrastructure branch May 30, 2026 13:50
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.

1 participant