Skip to content

Tests are not found when using the xunit.runner.msbuild in TeamCity

Michael W Powell edited this page Dec 8, 2020 · 1 revision

This issue affects 2.x versions only. It does not affect versions 1.x and below.

It has been reported that, when using the xunit.runner.msbuild package, tests written using xBehave.net v2.0 and above are sometimes not found when building on TeamCity.

The solution for this is to include an explicit build step to restore the NuGet packages for your solution before building the solution itself.

Note that since xWellBehaved.net derives from the core xBehave.net behavior, we here with xWellBehaved.net have no reason to expect that the experience would be an different.

Clone this wiki locally