简体   繁体   中英

How to launch unit tests separately from integration tests?

Say I have several dlls of unit tests and a couple of dlls of integration tests. I want to rerun all unit tests by a click or by a hotkey for example.

How to accomplish that using Visual Studio 2013? By the way I have DotCover and ReSharper from JetBrains, maybe these tools can help?

Visual Studio 2013 / MSTest has a feature called playlist .

You might create a playlist of integration tests and other one of unit tests, and this should be enough for you, since you'll be able to execute:

  • All tests (this won't need a playlist).
  • Integration tests separately ( Integration test playlist ).
  • Unit tests separately ( Unit test playlist ).

Learn more about playlists here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM