![tfs 2015 project planning tools tfs 2015 project planning tools](https://www.softwaretestinghelp.com/wp-content/qa/uploads/2018/07/63save-the-Build-Definition.png)
TFS handily supplies a type, TestSpecList, to store unit test information. To do this, we can reuse a lot of what is already there and in doing so keep all of the features we currently have for running unit tests such as test categories and test settings files. What we will set out to do is customize the build template to let us define a second set of unit tests to run post deployment. The standard TFS build template already lets you define a set of unit tests to run post build.
#Tfs 2015 project planning tools windows#
If you are unfamiliar with customizing TFSBuild or Windows Workflow, then this article is a good introduction. They are right and these tests are way beyond the scope of unit tests but I see MSTest as a testing framework, not a unit testing framework and a lot of the features available in MSTest work perfectly well when testing at the application level.Ī lot of the customizations here involve editing the Windows Workflow that powers TFSBuild. There are purists out there that will say post deployment tests that kick off services or test websites are way beyond the scope of unit tests and so shouldn't be run using MSTest. I use MSTest to run my Post-Deployment tests but you could in theory use another testing framework (there is enhanced support for other testing frameworks in TFS 2012).
#Tfs 2015 project planning tools how to#
What I will talk about is how to customize TFS Build to allow you to run a set of 'Post-Deployment' tests and also a discussion on what these tests might look like and other issues that you may face.Įxample code is supplied and written using VS 2010 and against TFS 2010 although exactly the same principles apply to TFS 2012. How to deploy your applications from TFSBuild is out of the scope of this article and very much depends on what you are deploying and where you want to deploy it to.
![tfs 2015 project planning tools tfs 2015 project planning tools](https://static.wikia.nocookie.net/windows/images/2/21/Team_Foundation_Server_2015.png)
There are no nasty surprises at the end of a development cycle and we can hand an environment over to testers knowing it is fit for purpose. I can get daily, even hourly, feedback on the operation of the latest version of my system. This is continuous integration at its best. These tests might just check all components have been deployed correctly and are available or they might actually try to exercise functionality and the end to end operation of your system. That is, define a set of 'Post-Deployment' tests that can be run against a test environment after the latest version of the codebase has been deployed to it. What I want to discuss in this article is how we can use TFS to automatically test our test environments. These might be virtual environments, lab environments or in the cloud somewhere. Many out there might already use it to build and deploy their applications to test environments.
![tfs 2015 project planning tools tfs 2015 project planning tools](https://volkanpaksoy.com/images/vpblogimg/2015/08/ci-with-tfs-management-console.png)
TFSBuild is an incredibly customizable tool.