-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Roslyn Source Generator Testing SDK to test interop source generators #84867
Use Roslyn Source Generator Testing SDK to test interop source generators #84867
Conversation
… Diagnostic tests that target the live reference pack to use the test harness.
…terloop diagnostics tests to use the harness.
…se the actual generator with the testing SDK as it now supports testing source generators with code fixers in a single test.
…sed on a given test's requested tfm.
…ng to use the source generator test suite.
Tagging subscribers to this area: @dotnet/interop-contrib Issue DetailsThis lets us more directly test the UX for the diagnostics we emit from the interop source generators. Opening in draft form now as I've only moved over the LibraryImportGenerator tests (and I need to move over the ComInterfaceGenerator tests as well due to some changes in common files for defining code snippets) Contributes to #84441
|
…forwarder fallback. This fixes the last compile error we have for invalid managed->unmanaged stubs.
…leFails test suite.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with anything that aligns with official product support for source generators. I skimmed the code, but if it is green consider me signed off. I assume you didn't add/remove any tests. I would at least do a rough compare for test count.
I converted one test at a time and validated that we didn't lose any tests in the conversion. Failures are unrelated, so I'll merge this in. |
This lets us more directly test the UX for the diagnostics we emit from the interop source generators.
Opening in draft form now as I've only moved over the LibraryImportGenerator tests (and I need to move over the ComInterfaceGenerator tests as well due to some changes in common files for defining code snippets)
Contributes to #84441