开发者

What's the point of ordered unit tests in Visual Studio?

In my test list, my ordered test开发者_JAVA百科 appears and runs, but each individual test that composes the ordered list is run a second time outside the list if I run all the tests.

What is the point of the ordered list if it's going to run them nondeterministically as well? Am I missing something?


For unit testing, ordered tests is exactly what you DON'T want.

However, for some cases of integration testing and regression acceptance testing where you do automated end-to-end tests of a system you might want it. For instance, application test data often is expensive to prepare and you might decide that some limited side effects between tests are ok, but should be keept at least consistent between test runs.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜