An old topic, but perhaps new information: I could not set the timeout in the .testsettings file using Visual Studio 2015. Regardless of what I set in the test settings, my tests stopped after 30 minutes.
Now there is an attribute [Timeout(milliseconds)] , which can be applied to individual testing methods. This is even better than tests, as you can fine-tune individual tests to make sure they don't take longer than expected.
Unfortunately, I could not get this attribute to try to set it for more than 30 minutes when using the .testsettings file, even if the .testsettings file specified a higher timeout. Values ββbelow 30 minutes have been met, but higher values ββwill still remain for 30 minutes, regardless of what the tests say.
After I deleted the .testsettings file, the timeout attributes seem to work as expected - the test will work until any timeout on which I set it.
If you are unable to get the timeout attribute to work, try removing .testsettings.
source share