Skip to content

SpecHygiene v1.0.0

Choose a tag to compare

@Karzone Karzone released this 21 Jul 21:21

Static hygiene checks for Reqnroll / SpecFlow BDD solutions — find unused C# code, unused step definitions, feature-file data errors, and duplicate scenarios. No AI, no network.

Install

dotnet tool install -g SpecHygiene
spechygiene ./MySolution

Or clone and run: dotnet run --project src/SpecHygiene -- ./MySolution

What it checks

  • Unused code — Roslyn semantic dead-code (methods, classes, interfaces).
  • Unused step definitions — bindings no scenario uses, matched with runtime-accurate Cucumber-expression / regex semantics.
  • Data errors — undefined placeholders, Scenario with Examples:, malformed tables, unresolved @DataSource.
  • Duplicate scenarios — exact, containment, and near-duplicate via deterministic step fingerprints.

Output

A self-contained HTML report (dashboard + collapsible sections, light/dark) and a text summary. See a live sample.

Built on .NET 8, cross-platform, 217 tests. Full notes in CHANGELOG.md.