Skip to content

[Test only change] Only track steps when needed#12479

Merged
chsienki merged 1 commit intodotnet:mainfrom
chsienki:faster_tests
Nov 12, 2025
Merged

[Test only change] Only track steps when needed#12479
chsienki merged 1 commit intodotnet:mainfrom
chsienki:faster_tests

Conversation

@chsienki
Copy link
Member

While working on #12477 I noticed that RazorSourceGeneratorTagHelperTests.ViewImports tests were taking over 30 seconds per run (and thanks to the theory we run it 11 times) seriously slowing down the tests.

After some investigation I discovered it's actually the generator tracking infrastructure that was causing the slowness. Disabling tracking makes them take around 500ms. I'll open an issue on roslyn to address that, but we only actually use tracking for a single test, so I've just disabled it for all the other tests in the assembly.

I also included a fix to the baseline generation that occurs due to #12477

@chsienki chsienki requested a review from a team as a code owner November 12, 2025 02:03
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.

2 participants