alex alex - 13 days ago 5
C# Question

What is the default value for test priority when PriorityAttribute is not set?

On a TFS build server, I want to run tests that does not have PriorityAttribute set and tests that have priority set to 5. How can I write in "test case filter" that test "does not have priority set"?

I've tried

Priority=0
and
Priority=-1
, but it does not seem to include test without PriorityAttribute.

Answer

I've checked the output from mstest.exe. It turns out the default value for priority is 2147483647.

Comments