summaryrefslogtreecommitdiff
path: root/Documentation/project-docs/tests.md
blob: ca6a5ef740a92795da0dff43bd2168d8ce7b4988 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

### Kinds of Build Properties ###
* Build Only
> `<CLRTestKind>BuildOnly</CLRTestKind>`

 * Builds an executable. 
 * Will not execute it. 

* Run Only
> `<CLRTestKind>RunOnly</CLRTestKind>`

 * Will only execute another assembly. 
* Build and Run
> `<CLRTestKind>BuildAndRun</CLRTestKind>`

 * Builds an executable.
 * Will execute said executable. 
* Shared Libraries
> `<CLRTestKind>SharedLibrary</CLRTestKind>`

 * For building libraries common to zero or more tests. 


By default (i.e. if not specified explicitly) a project file is BuildAndRun.

### Priority ###
Testcases are categorized by their priority levels. The most important subset should be and is the smallest subset. This subset is called priority 0.
 * By default, a testcase is priority 0. You must elect to de-prioritize a test.
  * To de-prioritize a test, add a property _CLRTestPriority_ to the test's project file.
> `<CLRTestPriority>2</CLRTestPriority>`
 * Lower priority values are always run in conjunction when running higher priority value tests. I.e. if a developer elects to do a priority 2 test run, then all priority 0, 1 and 2 tests are run.