Skip to content

Conversation

Copy link

Copilot AI commented Oct 26, 2025

Addresses #69 by migrating from the legacy MSTest adapter to the new native MSTest runner and updating all outdated dependencies.

MSTest Runner Migration

  • Replaced MSTest.TestFramework, MSTest.TestAdapter, and Microsoft.NET.Test.Sdk with unified MSTest package (3.7.3)
  • Added Microsoft.Testing.Extensions.TrxReport (1.5.3) and Microsoft.Testing.Extensions.CodeCoverage (17.13.1)
  • Configured EnableMSTestRunner, TestingPlatformDotnetTestSupport, and MSTestAnalysisMode=Recommended in Directory.Build.props
  • Set OutputType=Exe in test project to enable native runner

Dependency Updates

  • Nerdbank.GitVersioning: 3.6.133 → 3.8.118
  • BenchmarkDotNet: 0.13.12 → 0.15.4
  • Microsoft.Extensions.Logging.Abstractions: 8.0.1 → 9.0.10

Target Framework Updates

  • Removed netcoreapp3.1 target (EOL December 2022)
  • Added net9.0 target framework
  • Updated CI workflow to use .NET 9.0 instead of 3.1

Workflow Changes

Updated test.yml to use --no-build --configuration Release -- --coverage --report-trx for proper integration with the new runner and artifact generation.

Original prompt

Update all dependencies and migrate to the new MSTest runner as recommended in #69


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI assigned Copilot and gfs Oct 26, 2025
- Updated Directory.Build.props with MSTest runner configuration
- Migrated StreamRegex.Tests.csproj to new MSTest runner (MSTest 3.7.3)
- Added coverage and trx reporting extensions
- Updated Nerdbank.GitVersioning (3.6.133 → 3.8.118)
- Updated BenchmarkDotNet (0.13.12 → 0.15.4)
- Updated Microsoft.Extensions.Logging.Abstractions (8.0.1 → 9.0.10)
- Updated test workflow to use --no-build and enable coverage/trx reports

Co-authored-by: gfs <98900+gfs@users.noreply.github.com>
Copilot AI changed the title [WIP] Update dependencies and migrate to MSTest runner Update dependencies and migrate to MSTest runner Oct 26, 2025
Copilot AI requested a review from gfs October 26, 2025 03:54
Copilot finished work on behalf of gfs October 26, 2025 03:54
@gfs
Copy link
Owner

gfs commented Oct 26, 2025

@copilot tests failed for netcoreapp3.1, support ended in 2022 so remove the netcoreapp3.1 target from csproj but add net9

- Removed netcoreapp3.1 (EOL 2022) from test target frameworks
- Added net9.0 to test target frameworks
- Updated test workflow to use .NET 9.0 instead of 3.1
- All tests pass on net9.0 (26/26 passed)

Co-authored-by: gfs <98900+gfs@users.noreply.github.com>
Copy link
Author

Copilot AI commented Oct 26, 2025

@copilot tests failed for netcoreapp3.1, support ended in 2022 so remove the netcoreapp3.1 target from csproj but add net9

Removed netcoreapp3.1 target and added net9.0 in commit 71bad44. All tests pass successfully on net9.0 (26/26 passed).

Copilot finished work on behalf of gfs October 26, 2025 07:59
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