alex alex - 1 year ago 63
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 Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download