How to set the test case sequence in xUnit

前端 未结 4 1216
温柔的废话
温柔的废话 2020-12-05 12:59

I have written the xUnit test cases in C#. That test class contains so many methods. I need to run the whole test cases in a sequence. How can I set the test case sequence

4条回答
  •  粉色の甜心
    2020-12-05 13:43

    If you really have the need to prioritize your tests (probably not your unit tests) you can use Xunit.Priority. I have used it for some integration testing and works really well and simple without the overhead of having to write your prioritization classes, for simple case scenarios

提交回复
热议问题