Skip to content
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

SGen tests should compare against expectation not previous. #56877

Merged

Conversation

StephenMolloy
Copy link
Member

SGen tests should compare against expectation, not previous.

The old test code would run the generator tool from the pre-installed SDK
to get the old generated code for comparison. Which is effective when
you don't expect the generated code to change. But when making improvements
to code generation, we expect changes and need the flexibility in
these tests to allow for updated generated code when expected.

Fixes #54470 and #55469

@HongGit HongGit merged commit 4e0b7f6 into dotnet:main Aug 11, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Sep 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SgenCommandTest prohibits improvements to generated code
3 participants