TestRift.NUnit 0.6.0

dotnet add package TestRift.NUnit --version 0.6.0
                    
NuGet\Install-Package TestRift.NUnit -Version 0.6.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TestRift.NUnit" Version="0.6.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TestRift.NUnit" Version="0.6.0" />
                    
Directory.Packages.props
<PackageReference Include="TestRift.NUnit" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TestRift.NUnit --version 0.6.0
                    
#r "nuget: TestRift.NUnit, 0.6.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package TestRift.NUnit@0.6.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TestRift.NUnit&version=0.6.0
                    
Install as a Cake Addin
#tool nuget:?package=TestRift.NUnit&version=0.6.0
                    
Install as a Cake Tool

TestRift.NUnit

TestRift.NUnit streams NUnit test run events (logs, status, stack traces, attachments) to the TestRift Server and enables a real-time web UI for browsing and analysis.

Experimental

TestRift is currently in an experimental phase. APIs, configuration, and data formats may change at any time without notice.

Required: TestRift Server

You need the server available before your tests execute. You can either run it yourself or let the plugin auto-start it.

pip install testrift-server
testrift-server
  • Auto-start: set autoStartServer.enabled: true in TestRiftNUnit.yaml.
    • To start the server with a specific server config file, set autoStartServer.serverYaml (passed as TESTRIFT_SERVER_YAML).
    • To automatically restart the server when the config changes, set autoStartServer.restartOnConfigChange: true (starts the server with --restart-on-config).

Install (NuGet)

dotnet add package TestRift.NUnit

Basic usage

Add the attribute and run hooks:

using TestRift.NUnit;

[assembly: TRLogger]

[SetUpFixture]
public class MyRunHooks : RunHooks
{
}

Configuration

Create a TestRiftNUnit.yaml file to configure the plugin (server connection, run metadata, grouping, and optional URL files).

The config is discovered from either:

  • TESTRIFT_NUNIT_YAML (filesystem path), or
  • ./TestRiftNUnit.yaml in the current working directory.

All string fields support ${env:VAR_NAME} expansion (missing variables expand to an empty string), which is useful in CI.

Example TestRiftNUnit.yaml:

autoStartServer:
  enabled: true
  serverYaml: TestRiftServer.yaml
  restartOnConfigChange: true
serverUrl: http://localhost:8080

runName: CI run ${env:GITHUB_RUN_NUMBER}
runId: ${env:GITHUB_RUN_ID}

metadata:
  - name: Firmware
    value: ${env:FIRMWARE_BRANCH}
  - name: CI
    value: ${env:GITHUB_RUN_ID}
    url: ${env:GITHUB_SERVER_URL}/${env:GITHUB_REPOSITORY}/actions/runs/${env:GITHUB_RUN_ID}

group:
  name: ${env:PRODUCT}
  metadata:
    - name: Branch
      value: ${env:BRANCH}

urlFiles:
  runUrlFile: test_run_url.txt
  groupUrlFile: test_group_url.txt

Notes:

  • autoStartServerYaml is resolved relative to the directory containing TestRiftNUnit.yaml (so you can keep both files together).
  • Repository: https://github.com/testrift/testrift-nunit
  • Protocol reference: https://github.com/testrift/testrift-server/blob/main/docs/websocket_protocol.md
  • Config reference: https://github.com/testrift/testrift-nunit/blob/main/docs/config.md
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.6.0 110 4/19/2026
0.5.0 117 1/26/2026
0.4.0 109 1/19/2026
0.3.3 117 1/9/2026
0.3.2 113 1/8/2026
0.3.1 120 1/8/2026
0.3.0 117 1/6/2026
0.2.1 121 1/4/2026
0.1.0 119 1/1/2026