-
Notifications
You must be signed in to change notification settings - Fork 255
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
Improve display name when DataRow contains arrays #3053
Conversation
src/TestFramework/TestFramework/Attributes/DataSource/DataRowAttribute.cs
Outdated
Show resolved
Hide resolved
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 wasn't able to review but just wanted to point out that this change would be a breaking change for people still using the display name for the tests id generation. Because it's obsolete it might not be as important but wanted to point it out so we don't merge too fast without thinking about consequences.
True. Do you think it would be helpful if the feature was an opt-in feature? I.e. a Flag on the Attribute for the Array Display Name? |
@Evangelink Good to know I was thinking the same, but there was no breaking label, or future milestone. Can this be linked to id generation strategy? We have that as assembly level attribute (but imho also as a runsettings option). And if user is not using https://grep.app/search?q=idgenerationstrategy&filter[repo.pattern][0]=testfx |
The build is crashing on StackOverflow, I've added steps to install procdump so vstest can collect dumps. and pushed into your main Michel, for your next PR I would recommend creating a separate branch that is not main, so we don't block you if we take some time to merge this PR. |
Correction I cannot push to your main, because that is not a feature branch. So I created this PR, once that is merged you should be able to update and see why is the code is failing with Stack Overflow. #3059 |
Thanks, that should not be necessary just for me though, I fixed the StackOverflow issue now |
We will merge this next week at earliest, once evangelink and other folks are back from vacation and we can discuss how to avoid the breaking change. If you are okay with this PR hanging here and blocking your |
We will expose a @MichelZ I will push the change to your PR. |
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.
Thank you for your contribution @MichelZ
Flaky test, force merging. |
Fixes #1333
Improves the display name for DataRow tests for Arrays from:
MyMethod (System.String[])
to
MyMethod ([a,b,c])