Azure / Azure/azure-functions-dotnet-worker

Improve testability of source generators providing Verify into project

Open
#2,691 10 comments 0 reactions 1 assignee Assigned to @kshyju View on GitHub
enhancement Needs: Attention :wave:
Dominant language
C#
Stars
466
Forks
215
Avg merge
3d 10h
Merged PRs (30d)
7

Description

### Description

Hi

I tried to make some improvements of the code by making a generator and providing a example how it can looks
but...
I have a problem with that tests because:
- almost all the time you need to exact know what is the output
- updating the output of source generator can be painful
- comparing of "before" and "after" is not easy

Can I provide a pull request with potential way of how improve tests and how we can verify the output?

Also... I'm not sure about license of the external library, if that is acceptable by your team or not
Link to that library: https://github.com/VerifyTests/Verify.SourceGenerators

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.