Fix TUnit test execution on .NET 10 SDK
.NET 10 SDK deprecated the VSTest MSBuild target for Microsoft.Testing.Platform. TUnit uses this platform, causing dotnet test to fail with "Testing with VSTest target is no longer supported by Microsoft.Testing.Platform on .NET 10 SDK and later."
Changes
-
VSTestExecutionDriver.cs: Use
dotnet runinstead ofdotnet testfor TUnit projects-
dotnet run --project <path> --no-build -- --report-trx - Bypasses deprecated VSTest target by invoking the test executable directly
- Removed unused
runProcessActionparameter (dead code cleanup)
-
-
ProjectBuilder.cs: Added
TestingPlatformDotnetTestSupport=trueto TUnit project configuration for IDE/tooling compatibility
// TUnit execution now uses dotnet run
if (_testRunConfiguration.UnitTestProvider == UnitTestProvider.TUnit)
{
arguments = $"run --project \"{_testProjectFolders.ProjectFolder}\" --no-build -- --report-trx";
workingDirectory = _testProjectFolders.ProjectFolder;
}
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.
[!WARNING]
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
aka.ms
- Triggering command:
/usr/bin/curl curl -sL REDACTED(dns block)- Triggering command:
/usr/bin/curl curl -sL --max-redirs 3 REDACTED(dns block)- Triggering command:
/usr/bin/curl curl -sLI REDACTED(dns block)learn.microsoft.com
- Triggering command:
/usr/bin/curl curl -sL REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either:
- Configure Actions setup steps to set up my environment, which run before the firewall is enabled
- Add the appropriate URLs or hosts to the custom allowlist in this repository's Copilot coding agent settings (admins only)
Build : https://github.com/reqnroll/Reqnroll/actions/runs/19750018991
@304NotModified is this ready for review?