5

I have 2 questions here:

  1. How to set Priority of Tests in xUnit

  2. How to run selective tests based on Priority

E.g i have 5 tests : T1,T2,T3,T4,T5 having Priorities P1,P2,P1,P2,P3

So I need to run only P1 cases i.e T1,T3 how to do that ?

wonea
  • 4,783
  • 17
  • 86
  • 139
user522170
  • 623
  • 1
  • 6
  • 21
  • Similar question https://stackoverflow.com/questions/9210281/how-to-set-the-test-case-sequence-in-xunit/40369983#40369983 – wonea Nov 03 '17 at 14:15

1 Answers1

3

You can get that by adding Trait attributes to your test.

More info is outlined here:

Christian Horsdal
  • 4,914
  • 23
  • 24