Analyzers for test documentation XML metadata.
$ dotnet add package Bravellian.TestDocs.AnalyzersThis tool extracts XML doc metadata from MSTest, xUnit, and NUnit methods and generates test documentation under docs/testing/generated/.
global.jsonpwsh ./tools/testdocs/scripts/Invoke-TestDocs.ps1
Strict mode and compliance threshold:
pwsh ./tools/testdocs/scripts/Invoke-TestDocs.ps1 -Strict -MinCompliance 0.9
dotnet run --project tools/testdocs/src/TestDocs.Cli -- generate
dotnet tool install --global Bravellian.TestDocs.Cli
bravellian-testdocs generate
Options:
--repoRoot <path>--outDir <path>--strict--minCompliance <0-1>--format markdown|json|bothdotnet pack ./tools/testdocs/TestDocs.sln -c Release -o ./nupkgs
Follow the schema in docs/testing/test-doc-schema.md. Required tags are summary, intent, scenario, and behavior.
The analyzer package (Bravellian.TestDocs.Analyzers) emits warnings for:
TD001: Missing required XML doc tags.TD002: Placeholder or empty values in required tags.The default code fix inserts a template with TODO placeholders. Replace them with real content to avoid TD002 warnings.