Reputation: 25039
I tried it with xUnit test runner 2 (actually 1.1.3). Unfortunately it doesn't support .NET Core and it works only with full .NET 4.5:
So TC agent cann't run the tests. I checked docs and found it to be outdated. I asked at official xUnit Slack server - no feedback thanks to @naile.
netcoreapp1.1 is used as the only project's target framework. Further details:
xUnit.net 2.2.0
Teamcity 10
VS2017
new *.csproj project format
Upvotes: 5
Views: 1770
Reputation: 441
We run xUnit tests for csproj based dotnet core stuff in TeamCity. It's no different than running them on your local machine (outside Visual Studio). Use the dotnet test runner, like so:
dotnet test project.csproj
I use that for projects targeting both netcoreapp1.1 and net46
Upvotes: 5