Sent date: 05/21/2008
From: "Tomas Restrepo [MVP]" <(email address - cut out)>
Message:Hi Dan,
<<
I’m interested in seeing how many people are doing TDD with BizTalk?
I know I am, for the most part at least, and I’m using these tools to
do so:
NUnit
BizUnit
BizUnit Designer
And some ideas from Brent Anderson about unit testing BizTalk maps via
Reflection
Generally any assemblies I must write are unit tested like normal
NUnit tests and then I create unit tests for maps that work in
isolation using some stuff I derived from Brent’s suggestions. I’m
also testing full cycle end to end using BizUnit tests.
I’m really interested in using mocks and stubs to test other
components like custom adapters. Anyone doing this?
To be honest, BizTalk isn't particulary "test-driven" friendly; the whole
deploy/test model is too cumbersome for that (and the fact that there's no
way to access some interfaces/classes needed from the outside to do it).
I haven't used BizUnit myself much, but like you I mostly use NUnit to test
any .NET components I create for the solution.
I do test a lot schemas (flat file schemas, mostly), pipelines and custom
pipeline components using my own PipelineTesting library alongside NUnit.
You can read more about it here:
http://www.winterdom.com/weblog/2007/08/09/PipelineTesting11Released.aspx
As far as Adapters are concerned, I haven't bothered mocking the messaging
engine interfaces, though it should be possible. The problem with adapters
really is making sure you're dealing with the right threading issues and
sometimes there are other dependencies on stuff you want to test that are
just way too complex to solve with mocking, which is why I haven't bothered
too much with it.
--
Tomas Restrepo
http://www.devdeo.com/
http://www.winterdom.com/weblog/
Show quoted text
>>
Sent date: 05/23/2008
From: "Leonid Ganeline" <(email address - cut out)>
Message:Mostly I'm testing like Tomas. All C# code with NUnit (now with VS2008 test
functionality). BizUnit... Nope. Too much work and too many additional
infrastructure for not too big projects.
I use custom made infrastructure:
BizTalk: Tips: cumulative map and schema testing
http://geekswithblogs.net/LeonidGaneline/archive/2007/08/15/114699.aspx
and BizTalk: Debugging the BizTalk applications with the direct test send
ports
http://geekswithblogs.net/LeonidGaneline/archive/2008/04/27/biztalk-debuging-the-biztalk-applications-with-the-direct-test-send.aspx
And I always check in the whole set of the test messages with my solutions.
The test messages for schemas, maps, orchestrations (for all interesting
places, for all customisations). They are part of my code.
I have the set of messages to check if all subscribers work fine. I use it
after each redeployment.
--
--
Regards,
Leonid Ganeline [BizTalk MVP]
http://geekswithblogs.net/leonidganeline/
"Mike" <(email address - cut out)> wrote in message
news:(email address - cut out)...
Show quoted text
> Check out my series on BizTalk testing
>
> http://geekswithblogs.net/michaelstephenson/archive/2008/04/27/121687.aspx
>
>
>