run tests in mstest without compiling/building

前端 未结 3 665
长情又很酷
长情又很酷 2021-02-19 09:35

is there a way? do I have to wait for building every time I start the test? I want to build from visual studio not from test

thanks

3条回答
  •  天涯浪人
    2021-02-19 10:13

    This is an old question, but I keep seeing people ask it and the issue is still true in VS2017, and it's also true of other test frameworks (Xunit, etc) run from within VS.

    I don't know how to make VS stop building all the time. But I do know how to circumvent the compile - run your tests from a console runner, not from within VS. If you're using ReSharper, it has one.

    If you aren't using ReSharper, for MSTest, you can start here. https://msdn.microsoft.com/en-us/library/ms182489.aspx

    If you aren't using ReSharper, for XUnit, you can start here. https://xunit.github.io/docs/getting-started-desktop.html#add-xunit-runner-ref

提交回复
热议问题