TFS2010 build - how to run debug with unit tests before release build -
We are working to fix the automated build process using TFS 2010. During the development, we use a special configuration to run our unit test. During the construction, it makes sense to do the following: compile the application in Unitatest configuration and run the unit test. If all is there, then run and deploy the build in the Release configuration. The reason behind the above suggestion is that we are using the config file change for some settings. However, I can match them with Build Server without the need for a separate set. I also wonder whether the above approach is supported in TFS Build or not. I.E: How do you run two combinations in different configurations. Or the following approach is better: compile the app in the Release configuration and run the unit test. If all pass, deploy. Thank you! If you edit your build definition, navigate to Team Explorer and on the process page, you must In "Item to build" parameter will appear. If you expand that parameter, you will see a child parameter named "Configuration to Build". Clicking on the oval button for that property calls for a dialog where you can specify the platform and configuration that you want to create. By default, TFS will build the default platform and configuration. However, you can specify as many configurations as you can. Regarding the configuration and deployment of which configuration I personally bend towards the release version because make sure that you are still generating symbols for that configuration and you can not You can still get complete stack trace information for test failures. If you intend to deploy the release build, then it checks for the configuration, you should turn your tests on.
Comments
Post a Comment