Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove xunit-specific Rosyln analyzer testing packages #97220

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

akoeplinger
Copy link
Member

Microsoft.CodeAnalysis.CSharp.Analyzer.Testing.Xunit brings in an older xunit reference that is not compatible in some cases, we've hit issues with it while upgrading our xunit reference in the past.

As mentioned in dotnet/roslyn-sdk#1099 (comment) we can use the generic testing package instead. The only difference is the exception type thrown when an assert fails, e.g. the test throws InvalidOperationException instead of Xunit.Sdk.EqualException but we still get actual vs. expected exception messages so this is enough for us.

Microsoft.CodeAnalysis.CSharp.Analyzer.Testing.Xunit brings in an older xunit reference that is not compatible in some cases, we've hit issues with it while upgrading our xunit reference in the past.

As mentioned in dotnet/roslyn-sdk#1099 (comment) we can use the generic testing package instead.
The only difference is the exception type thrown when an assert fails, e.g. the test throws `InvalidOperationException` instead of `Xunit.Sdk.EqualException` but we still get actual vs. expected exception messages so this is enough for us.
@ghost
Copy link

ghost commented Jan 19, 2024

Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
See info in area-owners.md if you want to be subscribed.

Issue Details

Microsoft.CodeAnalysis.CSharp.Analyzer.Testing.Xunit brings in an older xunit reference that is not compatible in some cases, we've hit issues with it while upgrading our xunit reference in the past.

As mentioned in dotnet/roslyn-sdk#1099 (comment) we can use the generic testing package instead. The only difference is the exception type thrown when an assert fails, e.g. the test throws InvalidOperationException instead of Xunit.Sdk.EqualException but we still get actual vs. expected exception messages so this is enough for us.

Author: akoeplinger
Assignees: -
Labels:

area-Infrastructure-libraries

Milestone: -

@ghost ghost assigned akoeplinger Jan 19, 2024
Copy link
Member

@ViktorHofer ViktorHofer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@ViktorHofer ViktorHofer merged commit b8294da into dotnet:main Jan 19, 2024
187 of 192 checks passed
@akoeplinger akoeplinger deleted the remove-xunit-roslyn branch January 20, 2024 13:19
tmds pushed a commit to tmds/runtime that referenced this pull request Jan 23, 2024
Microsoft.CodeAnalysis.CSharp.Analyzer.Testing.Xunit brings in an older xunit reference that is not compatible in some cases, we've hit issues with it while upgrading our xunit reference in the past.

As mentioned in dotnet/roslyn-sdk#1099 (comment) we can use the generic testing package instead.
The only difference is the exception type thrown when an assert fails, e.g. the test throws `InvalidOperationException` instead of `Xunit.Sdk.EqualException` but we still get actual vs. expected exception messages so this is enough for us.
@github-actions github-actions bot locked and limited conversation to collaborators Feb 20, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants