-
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
Interop source generator testing improvements #84441
Comments
I'd love to add support for this somewhere in the testing library. In theory, the test would be structured like this:
In practice it's not exactly trivial so still trying to build a proof of concept. |
Tagging subscribers to this area: @dotnet/interop-contrib Issue DetailsNow that the majority of the new interop features are based on source-generators, we plan on improving our testing story. Our existing tests around diagnostics we issue from the source generators is pretty bare-bones, and there's some places where we can end up in a bad state when working on new features. We also want to improve our test coverage. Below is a list of improvements we plan to make in our test suites. Improvements to existing test infrastructure
Additional testing for the COM source generators
Testing for Microsoft.Interop.SourceGenerationWe have a lot of shared code in this library that we have aspirations to ship separately in the future. Currently, all testing of this library is done through our end-to-end testing of our interop source generators. We plan to add unit tests for the various components in this library.
|
+1 on some tooling support for testing incrementality across incremental runs, would love to use that in the MVVM Toolkit and ComputeSharp 😄 |
Now that the majority of the new interop features are based on source-generators, we plan on improving our testing story. Our existing tests around diagnostics we issue from the source generators is pretty bare-bones, and there's some places where we can end up in a bad state when working on new features. We also want to improve our test coverage. Below is a list of improvements we plan to make in our test suites.
Improvements to existing test infrastructure
Additional testing for the COM source generators
Testing for Microsoft.Interop.SourceGeneration
We have a lot of shared code in this library that we have aspirations to ship separately in the future. Currently, all testing of this library is done through our end-to-end testing of our interop source generators. We plan to add unit tests for the various components in this library.
MarshallingInfoParser
and related types.IMarshallingGeneratorFactory
implementations.BoundGenerators
VariableDeclarations
SignatureContext
and related types.The text was updated successfully, but these errors were encountered: