-
Notifications
You must be signed in to change notification settings - Fork 256
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
Allow "SkipGeneratedSourcesCheck" for specific generator when a test is using multiple generators #1087
Comments
@sharwell Is this a reasonable request? If you can suggest an API shape, I can try to implement this. |
Can you provide more information about why it doesn't work to just validate both? |
Eventually, the incremental testing features should allow selecting and validating the outputs from a specific generator. Those APIs haven't been designed yet though. |
@sharwell Scenario:
If I try to use a property generated by Mvvm in XAML file (e.g, in I'm working around that by unoplatform/uno#11854. The trick is that I'm adding code to anticipate what will be generated instead of failing. https://github.com/unoplatform/uno/blob/284f2a4401b0efe75ac0ccb0ba31093de7821ba8/src/SourceGenerators/Uno.UI.SourceGenerators/XamlGenerator/ThirdPartyGenerators/CommunityToolkitMvvm/MvvmTypeProvider.cs In tests, I'm referencing both Uno's XAML generator and CommunityToolkit.Mvvm's observable property generator. But it doesn't make sense to test the actual output from CommunityToolkit.Mvvm:
|
I don't have any immediate plans to implement this, but I'll keep the use case in mind when we're building the new API to test incrementality. |
I have a case where I'm testing two generators in the same test, but I only want to verify the generated sources for one of them.
Currently, there is no way to do so.
The text was updated successfully, but these errors were encountered: