Closed arnath closed 4 years ago
Hey @arnath, you can set the timeout for the entire test run using test session timeout in run settings file
<RunSettings>
<RunConfiguration>
<TestSessionTimeout>100</TestSessionTimeout>
</RunConfiguration>
</RunSettings>
Refer this for further information.
Do cleanup methods get called when the tests are aborted like this (AssemblyCleanup, ClassCleanup, etc)? If not, is there a way to have the test session timeout but still try to clean up?
Clean up methods do not get called when this happens. The timeout for all you know could happen in the clean up code. This is a hard abort.
What you are requesting for would be an enhancement. You can open another issue requesting for the feature and provide the link here. We will track it along with the other enhancement asks.
MSTest v2 appears to have a way to set a per test timeout value using this setting in a .runsettings file:
However, there does not appear to be a way to set a timeout for the entire test run. Does this feature exist? If not, can it be added?