Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit 6e424ab

Browse files
authored
Adding RFC for test timeout configured via runsettings. (#40)
1 parent be317d6 commit 6e424ab

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

RFCs/008-TestCase-Timeout.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# RFC 008 - Test case timeout via runsettings
2+
3+
## Motivation
4+
User should be able to configure global test case timeout for all the test cases part of the run. 
5+
6+
### Proposed solution
7+
Make test case timeout configurable via TestTimeout tag which is part of the adapter node in the runsettings.
8+
9+
Here is a sample runsettings: 
10+
```
11+
<Runsettings> 
12+
 <MSTestV2> 
13+
<TestTimeout>5000</TestTimeout>   
14+
 </MSTestV2> 
15+
</Runsettings> 
16+
```
17+
18+
### Honoring the settings 
19+
- If no settings are provided in runsettings, default timeout is set to 0. 
20+
- Timeout specified via Timeout attribute on TestMethod takes precedence over the global timeout specified via runsettings. 
21+
- For all the test methods that do not have Timeout attribute, timeout will be based on the timeout specified via runsettings.

0 commit comments

Comments
 (0)