Skip to content

TestTimeout in RunSettings - #403

Merged
Sarabjot Singh (singhsarab) merged 2 commits into
microsoft:masterfrom
singhsarab:testTimeout
Apr 18, 2018
Merged

Sarabjot Singh (singhsarab) merged 2 commits into
microsoft:masterfrom
singhsarab:testTimeout

Conversation

@singhsarab

@singhsarab Sarabjot Singh (singhsarab) commented Apr 17, 2018 •

Copy link
Copy Markdown
Contributor

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

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

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.


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

Copy link
Copy Markdown
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 (@pvlakshm) about precedence order?

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@singhsarab Sarabjot Singh (singhsarab) changed the title TestTimeout RunSettings TestTimeout in RunSettings Apr 18, 2018
@singhsarab
Sarabjot Singh (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