4
votes

I'm trying to load a TFS 2010 workflow into a unit test. This workflow has a number of custom workflow activities used to customize our build process because there's no previously existing functionality out there for what we need to do that we can find. I want to shorten the process of testing out this customized workflow as much as possible, hence the unit testing. Has anybody had any experience with this ? Does anybody know how to load a TFS workflow manually in code ?

1

1 Answers

1
votes

I put the core functionalities of the workflow to classes, use them in the activities and test them separately.

After done that I test the workflow itself with the WorkFlowApplication.

Additionally I do some integration tests for the team build itself.

Some ressources can be found here, here and here