How to Get total Number of Tests using TestContex during Execution RRS feed

  • Question

  • I have Unit test project created and I want to get list of all test cases during the execution? that means if i have 50 Unit tests out of which I am considering 20 test for execution, then is their any way to identify count / list of all 20 tests during execution and along with its status using C#?
    Friday, April 20, 2018 6:51 AM


  • Maybe the simple way is, in Test Explorer, right-click test method name -> Add to Playlist -> New playlist:

    You could add any number test methods as you want to different playlist, then you will just run playlist.




    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Edited by Fletch Zhou Monday, April 23, 2018 12:29 PM
    • Proposed as answer by Fletch Zhou Wednesday, April 25, 2018 10:10 AM
    • Marked as answer by GP_PUN Friday, January 25, 2019 5:55 AM
    Monday, April 23, 2018 12:29 PM