Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
documentation/assets
MR_XUnitNet.xml
README.md

README.md

xUnit.net meta-runner for TeamCity

This meta-runner allows you to run xUnit.net tests inside of TeamCity without needing to install anything further on your server. It will automatically install the xUnit runner from Chocolatey after ensuring Chocolatey exists on that server (it installs Chocolatey for you if it's not already there). It will then execute xUnit.net against the dll(s) you provide and output the appropriate test statuses to TeamCity.

xUnit.net Runner

Runner configuration in TeamCity

The following options can be specified:

  • Assembly/ies to test - The list of assemblies to test with paths relative to the working directory
  • dotCover Filters - List of filters for dotCover code coverage

Supports both xUnit.net v1.x and v2.0 test assemblies, using the xUnit2.0 console runner.

Known Issues

  1. Once this gets xUnit.net 2.x installed on the server from Chocolatey it will never try and update it - It could include a call to cinst to update it if necessary every run, but that will add at least 1-2s (if not more) to every build run due to Chocolatey's slowness. That's why it checks the filesystem for chocolatey rather than invoking a Chocolatey command to see if it already exists.
  2. Due to difficulties passing dynamic variables between meta-runner runners this meta-runner only where Chocolatey is installed to %ProgramData%\Chocolatey.
  3. Currently this meta-runner is hard-coded to use dotCover
  4. This meta-runner is compatible with the xUnit.net 2.0 console runner and therefore forces an update to xUnit.net 2.0. It does this by hard-coding the chocolatey package reference to XUnit 2.0.0 (which is currently in the package moderation queue).
  5. Due to incompatible command line arguments, this meta-runner only works with Chocolatey > 0.9.8.32
You can’t perform that action at this time.