How do you separate unit tests from integration tests in Visual Studio?

前端 未结 2 1619
栀梦
栀梦 2021-02-19 09:07

I\'ve been using Visual Studio 2008 Test projects to store my tests. Lately I\'ve realized that a lot of my unit tests are in fact integration tests because they rely on extern

2条回答
  •  死守一世寂寞
    2021-02-19 09:55

    Keep them in separate projects, and keep the integration testing projects out of your day-to-day Visual Studio solutions.

    When you wish to run the integration tests, you can use a different solution that includes them. If you don't want to wait for a second instance of VS to load, you can run them from the command-line.

提交回复
热议问题