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

Fix DataRow issues related to serialization/deserialization #4078

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Youssef1313
Copy link
Member

No description provided.

@@ -28,6 +29,8 @@ public sealed class TestMethod : ITestMethod
private string? _declaringClassFullName;
private string? _declaringAssemblyName;

private static readonly ConcurrentDictionary<string, object?[]> DataDictionary = new();
Copy link
Member Author

@Youssef1313 Youssef1313 Nov 18, 2024

Choose a reason for hiding this comment

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

Notes:

  • This is bad. The dictionary in theory can grow up indefinitely.
  • Currently, UniqueName isn't really unique and we need a better mechanism here. One possibility is to attach a test property resulting from Interlocked.Increment on a static counter and use that as the dictionary key. Then, instead of deserializing we look up that key.
  • This PR is mostly to open a discussion about the possibilities to improve the situation for some parameterized tests broken scenarios.

@Evangelink thoughts? I feel like some of the parameterized test issues could be fixable without the need for breaking changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant