Skip to content

[72.2] ReproFileBuilder: generate standalone .cs repro file + ConjectureSettings additions#120

Merged
kommundsen merged 1 commit intomainfrom
feat/72-108-repro-file-builder
Apr 10, 2026
Merged

[72.2] ReproFileBuilder: generate standalone .cs repro file + ConjectureSettings additions#120
kommundsen merged 1 commit intomainfrom
feat/72-108-repro-file-builder

Conversation

@kommundsen
Copy link
Copy Markdown
Owner

Description

Adds ReproFileBuilder, which generates a standalone .cs reproduction file from a ReproContext — capturing the seed, counterexample parameter values, platform info, and framework-specific test attributes (xUnit, NUnit, MSTest). Also adds ExportReproOnFailure and ReproOutputPath to ConjectureSettings to control repro file output.

Type of change

  • New feature / strategy

Checklist

  • dotnet test src/ passes
  • New behavior is covered by tests (TDD: Red → Green → Refactor)
  • Follows .editorconfig code style

Closes #108
Part of #72

- New ReproContext record captures all metadata needed for a repro file
  (class name, method, parameters, seed, framework, async flag, stats)
- New TestFramework enum distinguishes Xunit / NUnit / MSTest output
- ReproFileBuilder.Build() emits a complete .cs file with auto-generated
  header (seed, platform, .NET version), correct framework attributes,
  typed variable declarations, and the counterexample method call
- ConjectureSettings gains ExportReproOnFailure and ReproOutputPath
  to control if/where repro files are written
@kommundsen kommundsen merged commit bc525e7 into main Apr 10, 2026
1 check passed
@kommundsen kommundsen deleted the feat/72-108-repro-file-builder branch April 10, 2026 16:37
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.

[72.2] ReproFileBuilder: generate standalone .cs repro file + ConjectureSettings additions

1 participant