Skip to content

Add DotNet.testMTP to run dotnet test with the Microsoft.Testing.Platform runner - #2903

Merged
xperiandri merged 3 commits into
fsprojects:masterfrom
xperiandri:feature/dotnet-test-mtp
Oct 11, 2026
Merged

xperiandri merged 3 commits into
fsprojects:masterfrom
xperiandri:feature/dotnet-test-mtp

Conversation

@xperiandri

Copy link
Copy Markdown
Collaborator

Description

dotnet test of 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.json selects it:

{
  "test": {
    "runner": "Microsoft.Testing.Platform"
  }
}

In this text "the Microsoft.Testing.Platform runner" always means dotnet test with that setting. It has a command line of its own, and DotNet.test cannot produce it. This is what happens when DotNet.test runs an MSTest 4.2.3 test application with that setting (I ran it on the SDKs 10.0.100 and 10.0.401):

DotNet.test The Microsoft.Testing.Platform runner
passes the project as the first argument SDK 10.0.100 stops with Specifying a project for 'dotnet test' should be via '--project'. SDK 10.0.401 accepts the first argument again.
always adds /nodeReuse:False (and /clp:ForceConsoleColor where FAKE detects ANSI color support) The runner does not know these MSBuild switches and hands them over to the test application. It answers Tool '/nodeReuse:False' not found in the list of registered tools and exits with the code 5.
adds /bl:<temp file>.binlog and reads that file afterwards The runner writes the log to <temp file>-dotnet-test.binlog, so FAKE warns that MSBuild has not created the binary log.
has the options of VSTest: Logger, Collect, Diag, Blame, TestAdapterPath, NoLogo, Output (a directory) dotnet test has none of them with this runner. --logger, --collect, --diag, --blame and --nologo end as Unknown option in the test application (exit code 5), and --output is 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 target in Fake.DotNet.Cli, next to DotNet.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 cobertura

The second argument, DotNet.MTPTestTarget, says what is tested:

Case Arguments
CurrentDirectory none: the project or solution of the working directory
Project path --project path
Solution path --solution path
TestModules(expression, rootDirectory) --test-modules expression, and --root-directory when a root directory is given; these are test applications that are already built

The fields of DotNet.MTPTestOptions, in the order of the arguments:

Field Argument Who understands it
Common Verbosity is --verbosity; CustomParams go in front of everything, as for the other commands dotnet test
Configuration, Framework, Runtime, Architecture, OS --configuration, --framework, --runtime, --arch, --os dotnet test
NoRestore, NoBuild --no-restore, --no-build dotnet test
Properties --property:name=value, with the escaping MSBuild.CliArguments.Properties gets dotnet test
MaxParallelTestModules, ListTests, MinimumExpectedTests --max-parallel-test-modules, --list-tests, --minimum-expected-tests dotnet test
ResultsDirectory, ConfigFile --results-directory, --config-file dotnet test
NoLaunchProfile, NoLaunchProfileArguments, NoProgress, NoAnsi, Output --no-launch-profile, --no-launch-profile-arguments, --no-progress, --no-ansi, --output dotnet test
Filter --filter the test framework: MSTest and NUnit take the filter expressions of VSTest, other frameworks have other options
Timeout, IgnoreExitCodes --timeout, --ignore-exit-code every test application (options of the platform)
Diagnostic --diagnostic, --diagnostic-verbosity, --diagnostic-file-prefix, --diagnostic-synchronous-write; --diagnostic-output-directory goes in front of the -- every test application
TrxReport --report-trx, --report-trx-filename test applications that reference Microsoft.Testing.Extensions.TrxReport
CodeCoverage --coverage, --coverage-output, --coverage-output-format, --coverage-settings test applications that reference Microsoft.Testing.Extensions.CodeCoverage
CrashDump --crashdump, --crashdump-filename, --crashdump-type test applications that reference Microsoft.Testing.Extensions.CrashDump
HangDump --hangdump, --hangdump-filename, --hangdump-timeout, --hangdump-type test applications that reference Microsoft.Testing.Extensions.HangDump
ApplicationArguments passed as they are, last whatever the test application understands

The other new types are the values of these fields: the records MTPDiagnosticOptions, MTPTrxReportOptions, MTPCodeCoverageOptions, MTPCrashDumpOptions, MTPHangDumpOptions and the unions MTPOutputVerbosity, MTPDiagnosticVerbosity, MTPCoverageFormat, MTPDumpType. MTP is the abbreviation that the Microsoft documentation uses for Microsoft.Testing.Platform.

Decisions

  1. A function and a record of its own, not more fields on TestOptions. Most fields of TestOptions have no meaning for this runner, and Output would even change its meaning (a directory for VSTest, a verbosity here). TestOptions.Configuration is always passed, but --configuration is an error together with --test-modules. DotNet.test and TestOptions stay as they are; only their documentation comments now point to the new function.
  2. The target is a union and the second argument, like the project of DotNet.test, so two targets cannot be given at once. dotnet test answers Specify either the project, solution, directory, or test modules option. to --project together with --solution.
  3. The options of the test applications follow a --. dotnet test hands over everything it does not know anyway, so --coverage works in front of the -- too. The documentation of dotnet test recommends 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 --timeout in the .NET 11 SDK. Nothing is added when there are no such options.
  4. The extensions have records of their own. TrxReport = Some ... turns the report on and None leaves it out, so --report-trx-filename cannot 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 test fails, and so does DotNet.testMTP.
  5. Of the MSBuild parameters only properties. MSBuild.CliArguments cannot be passed on, see the second row of the first table. FAKE's binary log is not attached either, see the third row; so DotNet.testMTP does not report the warnings and errors of an implicit build to the build server the way DotNet.build does.
  6. No empty argument. A missing or blank value removes its option, and blank entries of ApplicationArguments are dropped. A blank project, solution or test module expression is an ArgumentException: silently testing the working directory instead would hide a mistake of the build script.
  7. A failure is an exception with the exit code of dotnet test and the link to the list of the exit codes of Microsoft.Testing.Platform.
  8. Durations are passed in whole seconds (Timeout, HangDump.Timeout): the hang dump extension 2.2.3 rejects 90.5s.

MSBuild.fs changes by one move: the function that escapes property values was local to fromCliArguments and is now an internal function of the module, so that Fake.DotNet.Cli can use it.

Relation to #2897

#2897 (a draft) adds the fields Project and Solution to TestOptions and leaves the first argument out when it is empty. That solves the first row of the first table. For its usage example it produces dotnet 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 reset MSBuildParams and avoid the VSTest fields.

This pull request keeps the idea of #2897, to name the target with --project or --solution and to pass no empty argument, and gives the runner an API of its own. It answers the points that are open there:

  • "whether mutually exclusive option fields are idiomatic": they are replaced by the union MTPTestTarget.
  • "--project project.slnx just works": on the SDK 10.0.401 it does, the SDK 10.0.100 answers The provided project file has an invalid extension. Solution therefore uses --solution, which works on both.
  • The review comments "Project is documented to override the first argument but both are passed" and "Solution is not exclusive with the first argument" cannot happen with a union.
  • "whitespace-only project strings": see decision 6.
  • "a comment that the first argument does not work for this runner": the documentation comments of DotNet.test and TestOptions and 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.json and of the CI, on Windows 11:

  • dotnet build src/test/Fake.Core.UnitTests/Fake.Core.UnitTests.fsproj -c Release succeeds at each of the two code commits (0 errors; the 2 warnings FS0044 in Fake.Net.FTP and Fake.Runtime are 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 of dotnet test, for all options of the test applications, for extensions without details, for blank values and for paths with spaces.
  • The whole Fake.Core.UnitTests: 332 run, 331 passed, 1 errored. The errored one is Fake.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-wide dotnet, which does not have it. In one of four runs six tests of Fake.DotNet.NuGet.Tests that query the NuGet feed errored as well; they passed in the other runs.
  • dotnet fantomas (5.0.5, the version of the repository) with --check on the three F# files: no changes required.
  • Every cref of the new documentation comments names a member of the generated Fake.DotNet.Cli.xml.

With the real dotnet test: two throw-away MSTest 4.2.3 test applications with the global.json setting above, one with the MSTest metapackage and the two dump extensions, one with only MSTest.TestFramework and MSTest.TestAdapter, and an F# script that references the built Fake.DotNet.Cli.dll and calls DotNet.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:

What DotNet.testMTP was asked for Command line it ran Result
a built project, coverage in the Cobertura format test --project tests/Probe.Tests/Probe.Tests.fsproj --configuration Release --no-build --results-directory <dir> -- --coverage --coverage-output-format cobertura exit code 0, the .cobertura.xml file is there
list the tests test --project tests/Probe.Tests/Probe.Tests.fsproj --configuration Release --no-build --list-tests exit code 0, 3 tests listed
a solution with every field set that this machine can serve test --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 1 exit code 0; the TRX file, the coverage file and the diagnostic logs are there
built test applications below a root directory, with a TRX report test --test-modules **/bin/Release/net10.0/Probe.Tests.dll --root-directory <dir> --results-directory <dir> -- --report-trx exit code 0
the project of the working directory, with a build and the property ProbeValue = a;b,c test --configuration Release --property:ProbeValue=a%3Bb%2Cc exit code 0; the project fails its build unless the property arrives as a;b,c
a TRX report from the test application without the extension test --project tests/Probe.Bare.Tests/Probe.Bare.Tests.fsproj --configuration Release --no-build -- --report-trx fails as it should: Unknown option '--report-trx', exit code 5 (1 on the SDK 10.0.100)
test modules together with a configuration test --test-modules **/bin/Release/net10.0/Probe.Tests.dll --configuration Release fails as it should: dotnet test rejects the combination, exit code 1

Not checked: the whole dotnet fake build with 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 about MTPOutputVerbosity.Minimal comes from the documentation; dotnet test of 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.md is 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/2896
  • The names testMTP and MTP...: I chose the abbreviation of the documentation over longer names.
  • DotNet.test could notice the global.json setting and fail with a hint to DotNet.testMTP. I left it out to keep DotNet.test unchanged.
  • The binary log could be attached by looking for the -dotnet-test file name, but that name is not documented.

TODO

  • New (API-)documentation for new features exist (Note: API-docs are enough, additional docs are in help/markdown): documentation comments on every new public type, case, field and function, and a section in docs/guide/dotnet-cli.md
  • unit or integration test exists (or short reasoning why it doesn't make sense): unit tests for the argument builder in src/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 10
  • boy scout rule: "leave the code behind in a better state than you found it" (fix warnings, obsolete members or code-style in the places you worked in): the documentation comments of DotNet.test and TestOptions now say which runner they are for
  • (if new module) the module has been linked from the "side navigation" menu, edit docs/data.json: no new module
  • (if new module) the module is in the correct namespace: no new module
  • (if new module) the module is added to Fake.sln (dotnet sln Fake.sln add src/app/Fake.*/Fake.*.fsproj): no new module
  • Fake API guideline is honored: DotNet.testMTP is a camelCase verb in the existing [<RequireQualifiedAccess>] module, the option records follow the Create() convention of the module

🤖 Generated with Claude Code

xperiandri and others added 3 commits October 10, 2026 14:57
`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>
Copilot AI balanced review requested due to automatic review settings October 10, 2026 13:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results

   12 files  ± 0     12 suites  ±0   35m 30s ⏱️ + 5m 11s
  469 tests +12    468 ✅ +12  1 💤 ±0  0 ❌ ±0 
1 341 runs  +36  1 338 ✅ +36  3 💤 ±0  0 ❌ ±0 

Results for commit e7b5452. ± Comparison against base commit e8e1cae.

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>
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
xperiandri requested a review from Thorium October 10, 2026 22:01
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 Thorium left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
@xperiandri
xperiandri merged commit 2cdfb61 into fsprojects:master Oct 11, 2026
5 checks passed
@xperiandri
xperiandri deleted the feature/dotnet-test-mtp branch October 11, 2026 13:49
This was referenced Nov 9, 2026
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.

Support for MTP (Microsoft.Testing.Platform)

3 participants