How to run unit testing tests from command line?

后端 未结 4 600
走了就别回头了
走了就别回头了 2020-12-13 17:25

I googled and found the below helpful references. Currently I want to run all from the command-line (for easy of execution & quickness) in cases:

  1. A specifi
4条回答
  •  醉话见心
    2020-12-13 17:46

    For question 

    5 All tests except the ones marked as category [TestCategory("some-category")]

    Use  

    mstest.exe /testcontainer:yourTests.dll  /category:"!some-category"
    

    If you need to exclude more than one category, use

      

    mstest.exe /testcontainer:yourTests.dll  /category:"!group1&!group2"
    

    Reference:  /category filter 

提交回复
热议问题