dotnet/roslyn

Improve docs for testing source generators

Open

#58.945 aperta il 19 gen 2022

Vedi su GitHub
 (18 commenti) (8 reazioni) (1 assegnatario)C# (4257 fork)batch import
Area-CompilersDocumentationhelp wanted

Metriche repository

Star
 (20.414 star)
Metriche merge PR
 (Merge medio 6g 17h) (256 PR mergiate in 30 g)

Descrizione

The current docs for tests for source generators is missing some important information about testing. For example, how to add references to the compilation. The current example is a good quick start but is not enough.

Docs link: https://github.com/dotnet/roslyn/blob/main/docs/features/source-generators.cookbook.md#unit-testing-of-generators

Guida contributor