Skip to content

docs: Clarify when ArgumentsSource is read - #3346

Merged
timcassell merged 1 commit into
dotnet:masterfrom
wozhenbang2004:docs-arguments-source-discovery-timing
Nov 21, 2026
Merged

timcassell merged 1 commit into
dotnet:masterfrom
wozhenbang2004:docs-arguments-source-discovery-timing

Conversation

@wozhenbang2004

Copy link
Copy Markdown
Contributor

Refs #1408.

Explain that ArgumentsSource is read during discovery, before GlobalSetup, and point to the existing constructor example for self-contained arguments.

With BenchmarkDotNet 0.15.8, a setup-dependent source failed during discovery. The constructor-initialized source produced both cases with their expected display names.

@timcassell timcassell left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@timcassell
timcassell merged commit 47d1b41 into dotnet:master Nov 21, 2026
1 check passed
@timcassell timcassell added this to the v0.16.0 milestone Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants