Prerequisites
The GUI itself runs under the .NET Framework version 4.6.2 or later, which must be installed on the machine. If you want tests to run under other runtimes, those runtimes must also be installed. The runner is bundled with agents supporting test execution under .NET 4.6.2, .NET 6.0 and .NET 7.0. Tests targeting earlier runtimes will use an installed higher version. Additional runtimes are supported through use of Pluggable Agent extensions, which may be downloaded and installed separately.
Choosing a Package
The GUI is released in both chocolatey and nuget packages. These are available from the GitHub project site. The nuget package is also available from nunit.org and the chocolatey package from chocolatey.org.
For each release, both packages contain the same binaries. The difference is in the user experience provided by each packaging ecosystem.
Chocolatey
The chocolatey package is recommended for most users. It provides the best user experience and is the preferred way to install the TestCentric GUI on Windows developer machines. Unfortunately, it is only available under Windows 7+ or Windows Server 2003+ and not at all under Linux. On GitHub, the chocolatey download is named testcentric-gui.x.y.z.nupkg
, where x.y.z
is the version.
Advantages
- TestCentric is available centrally on the machine, ready for use with any project.
- A simple
choco install
command installs TestCentric. - Engine Extensions may be installed at the same time or later using the same command.
- A shim is created, allowing the
testcentric
command to work from the command-line. - Upgrading is done easily through
choco upgrade
.
Drawbacks
- Installation requires running as administrator.
- Installation of chocolatey is slightly more complicated than one might like.
NuGet
Originally, there was no NuGet package. My feeling was that installing an executable tool, particularly a GUI, is a bad use of NuGet. However, some users expected it to be available, so now it is. Please consider the drawbacks before using it in your team. On GitHub, the zip download is named TestCentric.GuiRunner.x.y.z.nupkg
, where x.y.z
is the version.
Advantages
- You can install without leaving Visual Studio.
Drawbacks
- The install must usually be repeated for each project with which you want to use the GUI.
- The package is restored whenever the project is opened, even in a headless CI environment.
- The GUI and its dependencies may conflict with other installed runners, which use the NUnit Engine API.
How To Install
Chocolatey
- Install chocolatey, if not already installed. See https://chocolatey.org/install.
- Open an command prompt using
Run as Administrator
. - Issue command
choco install testcentric-gui
. - Optionally, create a desktop shortcut.
NuGet
- In Visual Studio, navigate to the project in which you want to install the GUI. Note that it doesn't matter which project you choose but VS requires you to choose one.
- Right click on either the project or its
References
and selectManage NuGet
- Select
nuget.org
as the source and Browse for "TestCentric". - Select the
TestCentric.GuiRunner
- On the right, select "Latest Stable" version or choose a specific version. Click "Install".