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

Working in a DevOps team is the best thing that happened to me. 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.

1 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 )

Facebook photo

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

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.