Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions RFCs/008-TestCase-Timeout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# RFC 008 - Test case timeout via runsettings

## Motivation
User should be able to configure global test case timeout for all the test cases part of the run. 

### Proposed solution
Make test case timeout configurable via TestTimeout tag which is part of the adapter node in the runsettings.

Here is a sample runsettings: 
```
<Runsettings> 
 <MSTestV2> 
<TestTimeout>5000</TestTimeout>   
 </MSTestV2> 
</Runsettings> 
```

### Honoring the settings 
- If no settings are provided in runsettings, default timeout is set to 0. 
- Timeout specified via Timeout attribute on TestMethod takes precedence over the global timeout specified via runsettings. 
- For all the test methods that do not have Timeout attribute, timeout will be based on the timeout specified via runsettings.