Skip to content

GH242: Remove VSTest packages and move cakefile example to xunit v3 on Microsoft.Testing.Platform - #251

Merged
devlead merged 2 commits into
cake-build:developfrom
devlead:feature/gh-242/gh-250
Oct 20, 2026
Merged

devlead merged 2 commits into
cake-build:developfrom
devlead:feature/gh-242/gh-250

Conversation

@devlead

@devlead devlead commented Oct 20, 2026

Copy link
Copy Markdown
Member
  • Remove Microsoft.NET.Test.Sdk from Cake.Generator.Core.Tests; TUnit already sets OutputType Exe and IsTestProject.
  • Drop the unused xunit.runner.visualstudio and Microsoft.NET.Test.Sdk package versions from Directory.Packages.props.
  • Replace xunit, xunit.runner.visualstudio, Microsoft.NET.Test.Sdk, and coverlet.collector in the cakefile Example.Tests with xunit.v3.mtp-v2 4.0.2, coverlet.MTP 10.1.0, Microsoft.Testing.Extensions.CodeCoverage 18.12.0, and Microsoft.Testing.Extensions.TrxReport 2.5.1; set OutputType Exe.
  • Add the Microsoft.Testing.Platform test runner to the cakeglobaljson template.
  • Run DotNetTest with PathType Solution in the cakefile template, as .NET 10+ MTP requires --solution.
  • Copy the template Example.Tests into the manual integration test structure instead of dotnet new xunit, which creates a VSTest project.
  • Mention xunit v3 / MTP in the Cake.Template README.
  • fixes Remove VSTest packages now that tests run on Microsoft.Testing.Platform #242
  • fixes Update cakefile example project to xunit v3 on Microsoft.Testing.Platform #250

…soft.Testing.Platform

- Remove Microsoft.NET.Test.Sdk from Cake.Generator.Core.Tests; TUnit already sets OutputType Exe and IsTestProject.
- Drop the unused xunit.runner.visualstudio and Microsoft.NET.Test.Sdk package versions from Directory.Packages.props.
- fixes cake-build#242
…rosoft.Testing.Platform

- Replace xunit, xunit.runner.visualstudio, Microsoft.NET.Test.Sdk, and coverlet.collector in Example.Tests with xunit.v3.mtp-v2 4.0.2, coverlet.MTP 10.1.0, Microsoft.Testing.Extensions.CodeCoverage 18.12.0, and Microsoft.Testing.Extensions.TrxReport 2.5.1; set OutputType Exe.
- Add the Microsoft.Testing.Platform test runner to the cakeglobaljson template.
- Run DotNetTest with PathType Solution in the cakefile template, as .NET 10+ MTP requires --solution.
- Copy the template Example.Tests into the manual integration test structure instead of dotnet new xunit, which creates a VSTest project.
- Mention xunit v3 / MTP in the Cake.Template README.
- fixes cake-build#250
@devlead
devlead enabled auto-merge October 20, 2026 12:21
@devlead
devlead merged commit 6c3fbf8 into cake-build:develop Oct 20, 2026
6 checks passed
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.

Update cakefile example project to xunit v3 on Microsoft.Testing.Platform Remove VSTest packages now that tests run on Microsoft.Testing.Platform

1 participant