dotnet / dotnet/fsharp

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

Open
#19,011 2 comments 0 reactions 0 assignees View on GitHub
Contributor Pain Feature Request
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 22h
Merged PRs (30d)
144

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.