Edit Existing Build to Run Tests

How do I do this   I setup a build initially with no tests.  Now I want to run tests. How can I modify the initial proj file to include the tests


Answer this question

Edit Existing Build to Run Tests

  • Harold van de Kamp

    Change this:

        <TestingFlag>false</TestingFlag>
        <!--  TEST ARGUMENTS
              If the TestingFlag is set to true then the following is relevant
              Metadatatest file path - mandatory
              Testlist name, a test list which is a part of the selected metadata file - mandatory
              Runconfiguration file path - optional, defaults to the active run configuration in the metadatafilename
            
        -->
        <TestingArgs> </TestingArgs>

    To this:

        <TestingFlag>true</TestingFlag>
        <!--  TEST ARGUMENTS
              If the TestingFlag is set to true then the following is relevant
              Metadatatest file path - mandatory
              Testlist name, a test list which is a part of the selected metadata file - mandatory
              Runconfiguration file path - optional, defaults to the active run configuration in the metadatafilename
            
        -->
        <TestingArgs>/testmetadata:$(SolutionRoot)\YourSolution.vsmdi</TestingArgs>




  • Raymunco Chapa G

    Using Source Control Explorer browse to the .proj file you want to modify and right-click it. From the pop-up menu, select Get latest version then repeat the step but select Checkout for Edit.

    Then, still within Source Control Explorer, double-click the file to open it. Make any necessary changes, save the file and make sure you check it back in before attempting the build.

    NOTE: If the popup menu options are not available, you have to manually set the workspace mapping, to do so, open the Visual Studio 2005 Command Prompt, go to the directory where your Build Type folder is supposed to be (According to the hierarchy in Source Control Explorer) and type h workspace. This will bring up a dialog where you can fix the workspace mapping (don't worry, it was not something you did that causes this mapping problem).



  • Georgia Nelson

    Wow! we posted two completely different answers at almost the same time. I guess you just needed the XML details.
  • Edit Existing Build to Run Tests