Repository navigation
Add DotNet.testMTP to run dotnet test with the Microsoft.Testing.Platform runner - #2903
Merged
xperiandri merged 3 commits intoOct 11, 2026
Merged
Conversation
`MSBuild.fromCliArguments` kept the escaping of property values in a local function. `Fake.DotNet.Cli` needs the same escaping for the properties it passes to `dotnet test` with the Microsoft.Testing.Platform runner, so the function moves to the module level. It stays internal and does not change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tform runner
Since the .NET SDK 10 `dotnet test` has a second runner, which runs test
applications built on Microsoft.Testing.Platform and is selected by
`"test": { "runner": "Microsoft.Testing.Platform" }` in `global.json`.
`DotNet.test` cannot serve it: it passes the project as the first argument,
which the SDK 10.0.100 rejects, and it adds MSBuild switches such as
`/nodeReuse:False`, which that runner hands over to the test applications,
so that they fail on an invalid command line. The options of VSTest
(`--logger`, `--collect`, `--blame`, ...) do not exist there either.
`DotNet.testMTP` builds the command line of that runner from
`MTPTestOptions`:
- the target is a union, `MTPTestTarget`: the working directory, a project
(`--project`), a solution (`--solution`) or built test applications
(`--test-modules`, `--root-directory`), so that two targets cannot be
given at once;
- the options that `dotnet test` knows itself come first, the options of
the test applications follow after `--`;
- the options of the extensions (TRX report, code coverage, crash dump,
hang dump) have records of their own, which name the package a test
application has to reference;
- of the MSBuild parameters only properties are passed, and FAKE's binary
log is not attached, because the runner writes it under another name;
- a missing or blank value removes its option, so that no empty argument
is passed.
`DotNet.test` and `TestOptions` do not change, apart from their
documentation comments.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The guide gets a section about running tests: `DotNet.test` for the VSTest runner and `DotNet.testMTP` for the Microsoft.Testing.Platform runner, with the `global.json` setting that selects that runner, an example and the command line it produces. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🔵 Needs a closer look
The sizable public API depends on SDK- and platform-specific behavior not fully covered by cross-platform integration testing.
0 open findings
What changed in this PR
Adds typed support for running dotnet test with Microsoft.Testing.Platform.
Changes:
- Adds MTP targets, options, argument generation, execution, and documentation.
- Reuses MSBuild property escaping.
- Adds comprehensive argument-generation tests.
| File | Description |
|---|---|
src/app/Fake.DotNet.Cli/DotNet.fs |
Implements the MTP testing API. |
src/app/Fake.DotNet.MSBuild/MSBuild.fs |
Exposes property-value escaping internally. |
src/test/Fake.Core.UnitTests/Fake.DotNet.Cli.fs |
Tests MTP command-line generation. |
docs/guide/dotnet-cli.md |
Documents VSTest and MTP usage. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Contributor
xperiandri
added a commit
to fsprojects/FSharp.Azure.Cosmos
that referenced
this pull request
Oct 10, 2026
The maintainer's reviews of 2026-10-10 changed several things the record describes, and it now says so where each belongs. The Hedgehog MSTest adapter (#43): the in-repository copy follows the coding guidelines of this repository, while the upstream pull request keeps upstream's style in a copy of its own, so a change of behaviour goes into both; an invocation that MSTest could not run stops the run instead of being shrunk; Odd and Even stay inside their range; DateOnly and TimeOnly get generators, upstream through hedgehogqa/fsharp-hedgehog#488. The open question of the adapter's code style is answered, with formatting and nullness checking still open. Collections (section 4): the shared collection functions of #47 that return voption and struct tuples, tested with properties in #50, and the rule of one module per pipeline of #49. Build (section 5): why FAKE's DotNet.test cannot run the test applications, and fsprojects/FAKE#2903, which adds DotNet.testMTP. The spec model (sections 6 and 16): EquatableArray and the ImmutableArray patterns are #48 and the model itself #42; the validator returns an ImmutableArray of struct errors. Golden baselines (section 13): a literal type provider was evaluated on the question asked in #46 and rejected, with the reasons. Tests (section 22): test category attributes sorted by name, Pascal-case assertion functions and ImmutableArray for shared test data. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xperiandri
added a commit
to fsprojects/FSharp.Azure.Cosmos
that referenced
this pull request
Oct 10, 2026
The maintainer's reviews of 2026-10-10 changed several things the record describes, and it now says so where each belongs. The Hedgehog MSTest adapter (#43): the in-repository copy follows the coding guidelines of this repository, while the upstream pull request keeps upstream's style in a copy of its own, so a change of behaviour goes into both; an invocation that MSTest could not run stops the run instead of being shrunk; the cancellation token is checked after every invocation, whatever its outcome, which the automatic review of #50 asked for; Odd and Even stay inside their range; DateOnly and TimeOnly get generators, upstream through hedgehogqa/fsharp-hedgehog#488. The open question of the adapter's code style is answered, with formatting and nullness checking still open. Collections (section 4): the shared collection functions of #47 that return voption and struct tuples, tested with properties in #50, and the rule of one module per pipeline of #49. Build (section 5): why FAKE's DotNet.test cannot run the test applications, and fsprojects/FAKE#2903, which adds DotNet.testMTP. The spec model (sections 6 and 16): EquatableArray and the ImmutableArray patterns are #48 and the model itself #42; the validator returns an ImmutableArray of struct errors. Golden baselines (section 13): a literal type provider was evaluated on the question asked in #46 and rejected, with the reasons. Tests (section 22): test category attributes sorted by name, Pascal-case assertion functions and ImmutableArray for shared test data. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 of 6 tasks
xperiandri
added a commit
to fsprojects/FSharp.Azure.Cosmos
that referenced
this pull request
Oct 10, 2026
The maintainer's reviews of 2026-10-10 changed several things the record describes, and it now says so where each belongs. The Hedgehog MSTest adapter (#43): the in-repository copy follows the coding guidelines of this repository, while the upstream pull request keeps upstream's style in a copy of its own, so a change of behaviour goes into both; an invocation that MSTest could not run stops the run instead of being shrunk; the cancellation token is checked after every invocation, whatever its outcome, which the automatic review of #50 asked for; Odd and Even stay inside their range; DateOnly and TimeOnly get generators, upstream through hedgehogqa/fsharp-hedgehog#488. The open question of the adapter's code style is answered, with formatting and nullness checking still open. Collections (section 4): the shared collection functions of #47 that return voption and struct tuples, tested with properties in #50, and the rule of one module per pipeline of #49. Build (section 5): why FAKE's DotNet.test cannot run the test applications, and fsprojects/FAKE#2903, which adds DotNet.testMTP. The spec model (sections 6 and 16): EquatableArray and the ImmutableArray patterns are #48 and the model itself #42; the validator returns an ImmutableArray of struct errors. Golden baselines (section 13): a literal type provider was evaluated on the question asked in #46 and rejected, with the reasons. Tests (section 22): test category attributes sorted by name, Pascal-case assertion functions and ImmutableArray for shared test data. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xperiandri
added a commit
to fsprojects/FSharp.Azure.Cosmos
that referenced
this pull request
Oct 10, 2026
The maintainer's reviews of 2026-10-10 changed several things the record describes, and it now says so where each belongs. The Hedgehog MSTest adapter (#43): the in-repository copy follows the coding guidelines of this repository, while the upstream pull request keeps upstream's style in a copy of its own, so a change of behaviour goes into both; an invocation that MSTest could not run stops the run instead of being shrunk; the cancellation token is checked after every invocation, whatever its outcome, which the automatic review of #50 asked for; Odd and Even stay inside their range; DateOnly and TimeOnly get generators, upstream through hedgehogqa/fsharp-hedgehog#488. The open question of the adapter's code style is answered, formatting and nullness checking included: the two projects are formatted with Fantomas and build with nullness checking on, and only the verbatim port keeps upstream's settings. Collections (section 4): the shared collection functions of #47 that return voption and struct tuples, tested with properties in #50, and the rule of one module per pipeline of #49. Build (section 5): why FAKE's DotNet.test cannot run the test applications, and fsprojects/FAKE#2903, which adds DotNet.testMTP. The spec model (sections 6 and 16): EquatableArray and the ImmutableArray patterns are #48 and the model itself #42; the validator returns an ImmutableArray of struct errors. Golden baselines (section 13): a literal type provider was evaluated on the question asked in #46 and rejected, with the reasons. Tests (section 22): test category attributes sorted by name, in #51 with an instruction scoped to those files, Pascal-case assertion functions and ImmutableArray for shared test data. Two more answers of the same day: the Windows emulator lane of #45 runs weekly instead of nightly (section 2), and the shared collection functions of #47 are in the namespace FSharp.Azure.Cosmos instead of the global one (section 4). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xperiandri
added a commit
to fsprojects/FSharp.Azure.Cosmos
that referenced
this pull request
Oct 10, 2026
The maintainer's reviews of 2026-10-10 changed several things the record describes, and it now says so where each belongs. The Hedgehog MSTest adapter (#43): the in-repository copy follows the coding guidelines of this repository, while the upstream pull request keeps upstream's style in a copy of its own, so a change of behaviour goes into both; an invocation that MSTest could not run stops the run instead of being shrunk; the cancellation token is checked after every invocation, whatever its outcome, which the automatic review of #50 asked for; Odd and Even stay inside their range; DateOnly and TimeOnly get generators, upstream through hedgehogqa/fsharp-hedgehog#488. The open question of the adapter's code style is answered, formatting and nullness checking included: the two projects are formatted with Fantomas and build with nullness checking on, and only the verbatim port keeps upstream's settings. Collections (section 4): the shared collection functions of #47 that return voption and struct tuples, tested with properties in #50, and the rule of one module per pipeline of #49. Build (section 5): why FAKE's DotNet.test cannot run the test applications, and fsprojects/FAKE#2903, which adds DotNet.testMTP. The spec model (sections 6 and 16): EquatableArray and the ImmutableArray patterns are #48 and the model itself #42; the validator returns an ImmutableArray of struct errors. Golden baselines (section 13): a literal type provider was evaluated on the question asked in #46 and rejected, with the reasons. Tests (section 22): test category attributes sorted by name, in #51 with an instruction scoped to those files, Pascal-case assertion functions and ImmutableArray for shared test data. Two more answers of the same day: the Windows emulator lane of #45 runs weekly instead of nightly (section 2), and the shared collection functions of #47 are in the namespace FSharp.Azure.Cosmos instead of the global one (section 4). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xperiandri
added a commit
to fsprojects/FSharp.Azure.Cosmos
that referenced
this pull request
Oct 11, 2026
The maintainer's reviews of 2026-10-10 changed several things the record describes, and it now says so where each belongs. The Hedgehog MSTest adapter (#43): the in-repository copy follows the coding guidelines of this repository, while the upstream pull request keeps upstream's style in a copy of its own, so a change of behaviour goes into both; an invocation that MSTest could not run stops the run instead of being shrunk; the cancellation token is checked after every invocation, whatever its outcome, which the automatic review of #50 asked for; Odd and Even stay inside their range; DateOnly and TimeOnly get generators, upstream through hedgehogqa/fsharp-hedgehog#488. The open question of the adapter's code style is answered, formatting and nullness checking included: the two projects are formatted with Fantomas and build with nullness checking on, and only the verbatim port keeps upstream's settings. Collections (section 4): the shared collection functions of #47 that return voption and struct tuples, tested with properties in #50, and the rule of one module per pipeline of #49. Build (section 5): why FAKE's DotNet.test cannot run the test applications, and fsprojects/FAKE#2903, which adds DotNet.testMTP. The spec model (sections 6 and 16): EquatableArray and the ImmutableArray patterns are #48 and the model itself #42; the validator returns an ImmutableArray of struct errors. Golden baselines (section 13): a literal type provider was evaluated on the question asked in #46 and rejected, with the reasons. Tests (section 22): test category attributes sorted by name, in #51 with an instruction scoped to those files, Pascal-case assertion functions and ImmutableArray for shared test data. Two more answers of the same day: the Windows emulator lane of #45 runs weekly instead of nightly (section 2), and the shared collection functions of #47 are in the namespace FSharp.Azure.Cosmos instead of the global one (section 4). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Thorium
approved these changes
Oct 11, 2026
Thorium
left a comment
Member
There was a problem hiding this comment.
Bit of a text wall but generally looks good to me.
Some more input validation could be useful, but I think currently FAKE is more maintenance mode than target for new projects, so I guess it's ok as is.
xperiandri
added a commit
to fsprojects/FSharp.Azure.Cosmos
that referenced
this pull request
Oct 11, 2026
The maintainer's reviews of 2026-10-10 changed several things the record describes, and it now says so where each belongs. The Hedgehog MSTest adapter (#43): the in-repository copy follows the coding guidelines of this repository, while the upstream pull request keeps upstream's style in a copy of its own, so a change of behaviour goes into both; an invocation that MSTest could not run stops the run instead of being shrunk; the cancellation token is checked after every invocation, whatever its outcome, which the automatic review of #50 asked for; Odd and Even stay inside their range; DateOnly and TimeOnly get generators, upstream through hedgehogqa/fsharp-hedgehog#488. The open question of the adapter's code style is answered, formatting and nullness checking included: the two projects are formatted with Fantomas and build with nullness checking on, and only the verbatim port keeps upstream's settings. Collections (section 4): the shared collection functions of #47 that return voption and struct tuples, tested with properties in #50, and the rule of one module per pipeline of #49. Build (section 5): why FAKE's DotNet.test cannot run the test applications, and fsprojects/FAKE#2903, which adds DotNet.testMTP. The spec model (sections 6 and 16): EquatableArray and the ImmutableArray patterns are #48 and the model itself #42; the validator returns an ImmutableArray of struct errors. Golden baselines (section 13): a literal type provider was evaluated on the question asked in #46 and rejected, with the reasons. Tests (section 22): test category attributes sorted by name, in #51 with an instruction scoped to those files, Pascal-case assertion functions and ImmutableArray for shared test data. Two more answers of the same day: the Windows emulator lane of #45 runs weekly instead of nightly (section 2), and the shared collection functions of #47 are in the namespace FSharp.Azure.Cosmos instead of the global one (section 4). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 12, 2026
Merged
2 of 6 tasks
This was referenced Oct 12, 2026
Closed
This was referenced Nov 2, 2026
This was referenced Nov 9, 2026
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.
Description
dotnet testof the .NET SDK 10 has two runners. VSTest is the default one. The second one runs test applications that are built on Microsoft.Testing.Platform (MSTest, NUnit, xUnit.net v3 or TUnit projects that use that platform).global.jsonselects it:{ "test": { "runner": "Microsoft.Testing.Platform" } }In this text "the Microsoft.Testing.Platform runner" always means
dotnet testwith that setting. It has a command line of its own, andDotNet.testcannot produce it. This is what happens whenDotNet.testruns an MSTest 4.2.3 test application with that setting (I ran it on the SDKs 10.0.100 and 10.0.401):DotNet.testSpecifying a project for 'dotnet test' should be via '--project'.SDK 10.0.401 accepts the first argument again./nodeReuse:False(and/clp:ForceConsoleColorwhere FAKE detects ANSI color support)Tool '/nodeReuse:False' not found in the list of registered toolsand exits with the code 5./bl:<temp file>.binlogand reads that file afterwards<temp file>-dotnet-test.binlog, so FAKE warns that MSBuild has not created the binary log.Logger,Collect,Diag,Blame,TestAdapterPath,NoLogo,Output(a directory)dotnet testhas none of them with this runner.--logger,--collect,--diag,--blameand--nologoend asUnknown optionin the test application (exit code 5), and--outputis the verbosity of the test output. A TRX report is--report-trx, coverage is--coverage.That is why build scripts of such projects call
DotNet.exec id "test"with an argument string they put together themselves. This pull request adds a function with typed options for that runner.What is added
DotNet.testMTP setParams targetinFake.DotNet.Cli, next toDotNet.test:DotNet.testMTP (fun options -> { options with NoBuild = true Configuration = Some DotNet.BuildConfiguration.Release ResultsDirectory = Some "TestResults" TrxReport = Some(DotNet.MTPTrxReportOptions.Create()) CodeCoverage = Some { DotNet.MTPCodeCoverageOptions.Create() with OutputFormat = Some DotNet.MTPCoverageFormat.Cobertura } }) (DotNet.MTPTestTarget.Project "tests/MyProject.Tests/MyProject.Tests.fsproj")runs
dotnet test --project tests/MyProject.Tests/MyProject.Tests.fsproj --configuration Release --no-build --results-directory TestResults -- --report-trx --coverage --coverage-output-format coberturaThe second argument,
DotNet.MTPTestTarget, says what is tested:CurrentDirectoryProject path--project pathSolution path--solution pathTestModules(expression, rootDirectory)--test-modules expression, and--root-directorywhen a root directory is given; these are test applications that are already builtThe fields of
DotNet.MTPTestOptions, in the order of the arguments:CommonVerbosityis--verbosity;CustomParamsgo in front of everything, as for the other commandsdotnet testConfiguration,Framework,Runtime,Architecture,OS--configuration,--framework,--runtime,--arch,--osdotnet testNoRestore,NoBuild--no-restore,--no-builddotnet testProperties--property:name=value, with the escapingMSBuild.CliArguments.Propertiesgetsdotnet testMaxParallelTestModules,ListTests,MinimumExpectedTests--max-parallel-test-modules,--list-tests,--minimum-expected-testsdotnet testResultsDirectory,ConfigFile--results-directory,--config-filedotnet testNoLaunchProfile,NoLaunchProfileArguments,NoProgress,NoAnsi,Output--no-launch-profile,--no-launch-profile-arguments,--no-progress,--no-ansi,--outputdotnet testFilter--filterTimeout,IgnoreExitCodes--timeout,--ignore-exit-codeDiagnostic--diagnostic,--diagnostic-verbosity,--diagnostic-file-prefix,--diagnostic-synchronous-write;--diagnostic-output-directorygoes in front of the--TrxReport--report-trx,--report-trx-filenameMicrosoft.Testing.Extensions.TrxReportCodeCoverage--coverage,--coverage-output,--coverage-output-format,--coverage-settingsMicrosoft.Testing.Extensions.CodeCoverageCrashDump--crashdump,--crashdump-filename,--crashdump-typeMicrosoft.Testing.Extensions.CrashDumpHangDump--hangdump,--hangdump-filename,--hangdump-timeout,--hangdump-typeMicrosoft.Testing.Extensions.HangDumpApplicationArgumentsThe other new types are the values of these fields: the records
MTPDiagnosticOptions,MTPTrxReportOptions,MTPCodeCoverageOptions,MTPCrashDumpOptions,MTPHangDumpOptionsand the unionsMTPOutputVerbosity,MTPDiagnosticVerbosity,MTPCoverageFormat,MTPDumpType.MTPis the abbreviation that the Microsoft documentation uses for Microsoft.Testing.Platform.Decisions
TestOptions. Most fields ofTestOptionshave no meaning for this runner, andOutputwould even change its meaning (a directory for VSTest, a verbosity here).TestOptions.Configurationis always passed, but--configurationis an error together with--test-modules.DotNet.testandTestOptionsstay as they are; only their documentation comments now point to the new function.DotNet.test, so two targets cannot be given at once.dotnet testanswersSpecify either the project, solution, directory, or test modules option.to--projecttogether with--solution.--.dotnet testhands over everything it does not know anyway, so--coverageworks in front of the--too. The documentation ofdotnet testrecommends the separator, because an option keeps its meaning when a later SDK gives the same name to an option of its own; it announces that for--timeoutin the .NET 11 SDK. Nothing is added when there are no such options.TrxReport = Some ...turns the report on andNoneleaves it out, so--report-trx-filenamecannot be passed without--report-trx, which a test application rejects. The documentation comment of each record names the package. FAKE does not check whether the test application references it: a test application without the extension rejects the option as an invalid command line (exit code 5),dotnet testfails, and so doesDotNet.testMTP.MSBuild.CliArgumentscannot be passed on, see the second row of the first table. FAKE's binary log is not attached either, see the third row; soDotNet.testMTPdoes not report the warnings and errors of an implicit build to the build server the wayDotNet.builddoes.ApplicationArgumentsare dropped. A blank project, solution or test module expression is anArgumentException: silently testing the working directory instead would hide a mistake of the build script.dotnet testand the link to the list of the exit codes of Microsoft.Testing.Platform.Timeout,HangDump.Timeout): the hang dump extension 2.2.3 rejects90.5s.MSBuild.fschanges by one move: the function that escapes property values was local tofromCliArgumentsand is now an internal function of the module, so thatFake.DotNet.Clican use it.Relation to #2897
#2897 (a draft) adds the fields
ProjectandSolutiontoTestOptionsand leaves the first argument out when it is empty. That solves the first row of the first table. For its usage example it producesdotnet test --configuration Release --no-build --project <project> /nodeReuse:False /bl:<file>(I derived this from its diff, I did not build it). I ran that command line: it fails on the SDK 10.0.100 (exit code 1) and on the SDK 10.0.401 (exit code 5) because of/nodeReuse:False; without the two MSBuild switches it passes on both. So with #2897 a build script still has to resetMSBuildParamsand avoid the VSTest fields.This pull request keeps the idea of #2897, to name the target with
--projector--solutionand to pass no empty argument, and gives the runner an API of its own. It answers the points that are open there:optionfields are idiomatic": they are replaced by the unionMTPTestTarget.--project project.slnxjust works": on the SDK 10.0.401 it does, the SDK 10.0.100 answersThe provided project file has an invalid extension.Solutiontherefore uses--solution, which works on both.Projectis documented to override the first argument but both are passed" and "Solutionis not exclusive with the first argument" cannot happen with a union.DotNet.testandTestOptionsand the guide say which function is for which runner.I think #2897 is not needed when this is merged, but that is for its author and the maintainers to decide.
How it was checked
With the .NET SDK 6.0.301, the version of
global.jsonand of the CI, on Windows 11:dotnet build src/test/Fake.Core.UnitTests/Fake.Core.UnitTests.fsproj -c Releasesucceeds at each of the two code commits (0 errors; the 2 warnings FS0044 inFake.Net.FTPandFake.Runtimeare not from this change).Fake.Core.UnitTests.dll --filter-test-list "Fake.DotNet.Cli.Tests": 24 passed, 12 of them new. They compare the argument lists for the targets, for a built project with coverage, for--list-tests, for all options ofdotnet test, for all options of the test applications, for extensions without details, for blank values and for paths with spaces.Fake.Core.UnitTests: 332 run, 331 passed, 1 errored. The errored one isFake.DotNet.SdkAssemblyResolver.Tests.follows symlinks when dotnet is symlinked. It errors the same way without the new function (at the first commit: 320 run, 319 passed, 1 errored), because the SDK 6.0.301 is installed side by side on my machine and the test reaches the machine-widedotnet, which does not have it. In one of four runs six tests ofFake.DotNet.NuGet.Teststhat query the NuGet feed errored as well; they passed in the other runs.dotnet fantomas(5.0.5, the version of the repository) with--checkon the three F# files: no changes required.crefof the new documentation comments names a member of the generatedFake.DotNet.Cli.xml.With the real
dotnet test: two throw-away MSTest 4.2.3 test applications with theglobal.jsonsetting above, one with theMSTestmetapackage and the two dump extensions, one with onlyMSTest.TestFrameworkandMSTest.TestAdapter, and an F# script that references the builtFake.DotNet.Cli.dlland callsDotNet.testMTP. The results are the same on the SDK 10.0.401 and on the SDK 10.0.100, except for the exit code in the sixth row:DotNet.testMTPwas asked fortest --project tests/Probe.Tests/Probe.Tests.fsproj --configuration Release --no-build --results-directory <dir> -- --coverage --coverage-output-format cobertura.cobertura.xmlfile is theretest --project tests/Probe.Tests/Probe.Tests.fsproj --configuration Release --no-build --list-teststest --verbosity minimal --solution Probe.slnx --configuration Release --framework net10.0 --no-build --max-parallel-test-modules 1 --minimum-expected-tests 1 --results-directory <dir> --config-file <file> --no-launch-profile --no-launch-profile-arguments --no-progress --no-ansi --output Detailed --diagnostic-output-directory <dir> -- --filter TestCategory=Slow --timeout 300s --ignore-exit-code 8;9 --diagnostic --diagnostic-verbosity Debug --diagnostic-file-prefix probe --diagnostic-synchronous-write --report-trx --report-trx-filename probe.trx --coverage --coverage-output probe.cobertura.xml --coverage-output-format cobertura --crashdump --crashdump-filename crash.dmp --crashdump-type Mini --hangdump --hangdump-filename hang.dmp --hangdump-timeout 91s --hangdump-type Mini --maximum-failed-tests 1test --test-modules **/bin/Release/net10.0/Probe.Tests.dll --root-directory <dir> --results-directory <dir> -- --report-trxProbeValue=a;b,ctest --configuration Release --property:ProbeValue=a%3Bb%2Cca;b,ctest --project tests/Probe.Bare.Tests/Probe.Bare.Tests.fsproj --configuration Release --no-build -- --report-trxUnknown option '--report-trx', exit code 5 (1 on the SDK 10.0.100)test --test-modules **/bin/Release/net10.0/Probe.Tests.dll --configuration Releasedotnet testrejects the combination, exit code 1Not checked: the whole
dotnet fake buildwith the integration tests, Linux and macOS, the generated documentation site, NUnit, xUnit.net v3 and TUnit test applications, and the .NET 11 SDK. What is said above about the .NET 11 SDK and aboutMTPOutputVerbosity.Minimalcomes from the documentation;dotnet testof the SDK 10.0.401 rejects--output Minimal, and the documentation comment of that case says so.What is left for the maintainers
RELEASE_NOTES.mdis not touched: its first section is the released 6.1.4, the build takes the version from that section, and the pull requests merged after 6.1.4 did not add entries either. A line for the next section:* ENHANCEMENT: Add DotNet.testMTP to run dotnet test with the Microsoft.Testing.Platform runner, refs https://github.com/fsprojects/FAKE/issues/2896testMTPandMTP...: I chose the abbreviation of the documentation over longer names.DotNet.testcould notice theglobal.jsonsetting and fail with a hint toDotNet.testMTP. I left it out to keepDotNet.testunchanged.-dotnet-testfile name, but that name is not documented.TODO
help/markdown): documentation comments on every new public type, case, field and function, and a section indocs/guide/dotnet-cli.mdsrc/test/Fake.Core.UnitTests/Fake.DotNet.Cli.fs; no integration test, because the CI installs the .NET SDK 6.0.301 and the runner needs the .NET SDK 10DotNet.testandTestOptionsnow say which runner they are fordocs/data.json: no new moduledotnet sln Fake.sln add src/app/Fake.*/Fake.*.fsproj): no new moduleDotNet.testMTPis a camelCase verb in the existing[<RequireQualifiedAccess>]module, the option records follow theCreate()convention of the module🤖 Generated with Claude Code