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

Remove dead code #4314

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Remove dead code #4314

wants to merge 2 commits into from

Conversation

Youssef1313
Copy link
Member

No description provided.

@@ -88,36 +88,6 @@ internal static class Constants

internal static readonly TestProperty InnerResultsCountProperty = TestProperty.Register("InnerResultsCount", InnerResultsCountLabel, typeof(int), TestPropertyAttributes.Hidden, typeof(TestResult));

internal static readonly TestProperty TestRunIdProperty = TestProperty.Register(TestRunId, TestRunId, typeof(int), TestPropertyAttributes.Hidden, typeof(TestCase));
Copy link
Member Author

Choose a reason for hiding this comment

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

We never set a value for any of these properties. @Evangelink Could they be magically set by something else (not us)? Or is it really dead code?

@@ -438,8 +438,7 @@ private void ExecuteTestsWithTestRunner(
PlatformServiceProvider.Instance.AdapterTraceLogger.LogInfo("Executing test {0}", unitTestElement.TestMethod.Name);

// Run single test passing test context properties to it.
IDictionary<TestProperty, object?> tcmProperties = TcmTestPropertiesProvider.GetTcmProperties(currentTest);
Copy link
Member Author

Choose a reason for hiding this comment

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

This dictionary was always empty because we don't set TestCaseIdProperty anywhere, so GetTcmProperties returns an empty dictionary right away.

@Evangelink
Copy link
Member

I sadly have no idea... Looks dead but I don't know.

@nohwnd is it ringing any bell?

@nohwnd
Copy link
Member

nohwnd commented Dec 11, 2024

all of them look azdo related (when it was still called tfs) microsoft/testfx-docs#36 #472

I would check with azdo team if they rely on these names.

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.

3 participants