NUnit Test Run Order

前端 未结 16 1380
名媛妹妹
名媛妹妹 2020-12-02 11:44

By default nunit tests run alphabetically. Does anyone know of any way to set the execution order? Does an attribute exist for this?

16条回答
  •  孤街浪徒
    2020-12-02 12:15

    I just want to point out that while most of the responders assumed these were unit tests, the question did not specify that they were.

    nUnit is a great tool that can be used for a variety of testing situations. I can see appropriate reasons for wanting to control test order.

    In those situations I have had to resort to incorporating a run order into the test name. It would be great to be able to specify run order using an attribute.

提交回复
热议问题