Skip to content

Contributor QoL - .fsproj hacks to build ComponentTests for a single-file test run fast? #19011

@T-Gro

Description

@T-Gro

When working on a feature, I typically run a small selection of tests very frequently.
AI tools , be it via IDE or standalone agents, also typically run tests in a single file via "dotnet test --filter" to iterate quickly.

I noticed that if the build speed bothers me, I just comment out all but 1 "" item in the .fsproj in ComponentTests.

I am writing it here as an issue just to see if:

  • Others do that too
  • There is perhaps a clever way to detect that "--filter" with a single file/module/type has been passed to botnet test, and we could conditionally choose items to compile.
  • We could somehow teach agents to do it

This is highly specific to this repo only, it assumes that all Compile items in the test project are independent (except perhaps xunit setup) and can be freely removed.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions