Motus.Testing
1.0.7
dotnet add package Motus.Testing --version 1.0.7
NuGet\Install-Package Motus.Testing -Version 1.0.7
<PackageReference Include="Motus.Testing" Version="1.0.7" />
<PackageVersion Include="Motus.Testing" Version="1.0.7" />
<PackageReference Include="Motus.Testing" />
paket add Motus.Testing --version 1.0.7
#r "nuget: Motus.Testing, 1.0.7"
#:package Motus.Testing@1.0.7
#addin nuget:?package=Motus.Testing&version=1.0.7
#tool nuget:?package=Motus.Testing&version=1.0.7
Motus.Testing
Shared browser fixture for Motus test framework integrations.
Overview
Provides the framework-agnostic BrowserFixture that manages browser launch, retry logic for transient CI failures, and context isolation. The three test framework packages (MSTest, xUnit, NUnit) build on top of this. Also includes FailureTracing for automatic trace capture on test failure.
Components
| Class | Description |
|---|---|
BrowserFixture |
Launches a browser with up to 3 retry attempts, exposes NewContextAsync for per-test isolation |
FailureTracing |
Starts tracing before a test and saves the trace ZIP to test-results/traces/ only when the test fails |
Failure Tracing Configuration
Tracing is enabled via motus.config.json (failure.trace: true) or the MOTUS_FAILURES_TRACE environment variable. The output path is configurable via failure.tracePath.
Installation
dotnet add package Motus.Testing
This package depends on Motus and Motus.Abstractions. Most consumers should install one of the framework-specific packages instead:
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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 is compatible. 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. |
-
net10.0
- Motus (>= 1.0.7)
- Motus.Abstractions (>= 1.0.7)
-
net8.0
- Motus (>= 1.0.7)
- Motus.Abstractions (>= 1.0.7)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Motus.Testing:
| Package | Downloads |
|---|---|
|
Motus.Testing.xUnit
xUnit integration for Motus browser automation. Provides collection and class fixtures for parallel test execution. |
|
|
Motus.Testing.MSTest
MSTest integration for Motus browser automation. Provides a base test class with per-test browser context isolation. |
|
|
Motus.Testing.NUnit
NUnit integration for Motus browser automation. Provides a base test class compatible with parallel test execution. |
GitHub repositories
This package is not used by any popular GitHub repositories.