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

TestTimeout in RunSettings #403

Merged
merged 2 commits into from
Apr 18, 2018
Merged

Conversation

singhsarab
Copy link
Contributor

@singhsarab singhsarab commented Apr 17, 2018

Making test timeout configurable via runsettings
microsoft/testfx-docs#40

string runSettingxml =
@"<RunSettings>
<MSTestV2>
<TestTimeout>4000</TestTimeout>
Copy link
Member

Choose a reason for hiding this comment

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

Should also add one negative test case where timeout is invalid(negative value or non-integer value)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@@ -645,6 +646,10 @@ private int GetTestTimeout(MethodInfo methodInfo, TestMethod testMethod)

return timeoutAttribute.Timeout;
}
else if (globalTimeout > 0)
Copy link
Member

Choose a reason for hiding this comment

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

Have we asked @pvlakshm about precedence order?

Copy link
Member

Choose a reason for hiding this comment

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

What happens when we passing runsettings arguments through commandline??

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@singhsarab singhsarab changed the title TestTimeout RunSettings TestTimeout in RunSettings Apr 18, 2018
@singhsarab singhsarab merged commit 6d10ac9 into microsoft:master Apr 18, 2018
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.

2 participants