Skip to content

chore: hardcoded configuration values should be centralized #4902

@thomhurst

Description

@thomhurst

Description

Performance and configuration values are scattered across the codebase without clear rationale:

  • GitHubReporter.cs:21MaxFileSizeInBytes = 1 * 1024 * 1024 (1MB)
  • TestBuilderPipeline.cs:25MinItemsForParallel = 8
  • Various parallelization thresholds in TestScheduler.cs

No way to tune these without code changes.

Suggested Fix

Centralize into TUnit.Engine/Configuration/PerformanceConstants.cs with documented rationale for each chosen value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions