Is there a way to run unit tests sequentially with MSTests?

前端 未结 6 1404
走了就别回头了
走了就别回头了 2020-12-09 07:51

I am working in an application that is mostly single-thread, single user. There are a few worker threads here and there, and they are only using thread safe objects and clas

6条回答
  •  抹茶落季
    2020-12-09 08:17

    There is the notion of an "Ordered Test" in which you can list tests in sequence. It is more geared towards ensuring a certain sequential order, but I can't see how that would be possible if B doesn't wait for A to complete.

    Apart from that, it is unfortunate that your tests interfere with each other. There are Setup / TearDown methods that can be used per test such that it may after all be possible to isolate the tests from each other.

提交回复
热议问题