dotnet/roslyn

Improve docs for testing source generators

Open

#58,945 opened on Jan 19, 2022

View on GitHub
 (18 comments) (8 reactions) (1 assignee)C# (4,257 forks)batch import
Area-CompilersDocumentationhelp wanted

Repository metrics

Stars
 (20,414 stars)
PR merge metrics
 (Avg merge 6d 17h) (256 merged PRs in 30d)

Description

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

Contributor guide