Running One Test Method in C++/CLI Test Project in Visual Studio 2010 Results in Running All Test Methods

Con risposta Running One Test Method in C++/CLI Test Project in Visual Studio 2010 Results in Running All Test Methods

  • mercoledì 16 maggio 2012 16:46
     
     

    I have a very strange problem with running test methods in Visual Studio 2010. The test project is configured as a C++/CLI test project. I have a few test methods there. I want to run one of them, so I click on that method to set the cursor on the body of the method. Then I click on the "Debug Tests in Current Context" button on the tool bar.  But it always run all the test methods as if I clicked on the "Debug All Tests in Solution" button.  The same does not happen to me when I  run tests in C# test projects.

    Any help will be appreciated.

Tutte le risposte

  • venerdì 18 maggio 2012 06:27
    Moderatore
     
     Con risposta

    Hi CCReval,

    Thank you for posting in the MSDN forum.

    I try to create a C# test project, and there are some test methods in it, I click Test->Debug->All Tests in Solution, it will run all test methods.

    If you want to run a specific test method in your test project, I suggest you try to use this way.

    Test->Windows->Test View, then you could right click the test->Debug Selection to debug one script only.

    Best Regards,


    Jack Zhai [MSFT]
    MSDN Community Support | Feedback to us