Search code examples
c#visual-studio-2012testingordered-test

Visual Studio 2012 Ordered Test, how to monitor test execution


I have an ordered test that have some tests that run properly.

My problem is that during the test execution I can't see which test is running. How can I monitor the execution of the ordered tests?


Solution

  • Visual Studio supports ordered tests as explained here.

    You have to add an Ordered Test to your solution which can contain actual unit tests. Within the ordered test, you can define which test is executed in which order.

    If you want to view some progress indication while your tests run you can always report it to the Visual Studio output window using e.g.

    void ReportProgress(string testName, int progress)
    {
        System.Diagnostics.Debug.WriteLine("Test {0} running ({1}%)", testName, progress);
    }