Reproduce unit test failures from Hosted Build Controller

Our builds succeed with warnings. After investigation of the output we noticed failing unit tests. But local they run fine. Here’s what we did to troubleshoot and fix the issue.

First we downloaded the build output from the drop location. This can be done from the build summary.

download.drop.as.zip

With the output from the build we run the unit tests with xunit gui and got the same failing tests. This is reproducible.

xunit.same.result

The assemblies are from 10 projects. Apparently the projects use different versions of StructureMap (latest version is incompatible with NServiceBus) and the droplocation contains only one structuremap assembly. This is obviously the wrong version for the unit tests. How about Murphy’s laws 🙂

To get around the version differences we used the PerProject option for the Output location in the build template.

build.template.output.location.perproject

No more failing unit tests after that.

About erictummers

My work as a recruited developer changes almost every month. I like challenges and sharing the solutions with others. On my blog I’ll mostly post about my work, but expect an occasional home project, productivity tip and tooling review.
This entry was posted in Development and tagged , , , , . Bookmark the permalink.

One Response to Reproduce unit test failures from Hosted Build Controller

  1. Hi Eric!

    We’re working on getting the support for StructureMap 3 going.

    https://github.com/Particular/NServiceBus.StructureMap/issues/1

    Please subscribe is you want to be “in the loop”

    Cheers,

    Andreas

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s