How to unit test the windows workflows?
Definition: Workflow testing involves mimicking the production environment into the testing phase so that it can be tested from an end-user's perspective. The test database must include sufficient test data so that each workflow can be tested thoroughly.
A unit test typically comprises of three stages: plan, cases and scripting and the unit test itself. In the first step, the unit test is prepared and reviewed. The next step is for the test cases and scripts to be made, then the code is tested.
Unit testing is the place to start when implementing testing in the Development Phase of the CI/CD pipeline. Unit testing is the process of testing discrete functions at the source code level. A developer will write a test that exercises a function.
There are 2 types of Unit Testing: Manual, and Automated.
K. Scott Allen has posted this, which provides an approach to unit testing custom activities (although he says that he is not satisfied). A similar approach is presented by Ron Jacobs here and here.
Another approach is presented by Maurice here and here (he uses TypeMock as Will already mentioned).
Microsoft.Activities.UnitTesting.
A library of helper classes and activities designed to make unit testing of workflows easier.
Looks like there's a Channel 9 video for it on the downloads page, too.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With