Dramaturge.NUnit
0.0.1
dotnet add package Dramaturge.NUnit --version 0.0.1
NuGet\Install-Package Dramaturge.NUnit -Version 0.0.1
<PackageReference Include="Dramaturge.NUnit" Version="0.0.1" />
<PackageVersion Include="Dramaturge.NUnit" Version="0.0.1" />
<PackageReference Include="Dramaturge.NUnit" />
paket add Dramaturge.NUnit --version 0.0.1
#r "nuget: Dramaturge.NUnit, 0.0.1"
#:package Dramaturge.NUnit@0.0.1
#addin nuget:?package=Dramaturge.NUnit&version=0.0.1
#tool nuget:?package=Dramaturge.NUnit&version=0.0.1
Dramaturge.NUnit
Base classes for NUnit tests that use Dramaturge.
Pre-release: Dramaturge is at version 0.0.x, and its API may change in any release.
- One browser launch per test assembly, shared by every fixture, unless a fixture configures a launch of its own.
- An isolated browser and page for each test, closed when the test ends, so no cookies or storage carry over.
- Screenshots of a failed test's pages, and videos and a trace if asked for, saved under
TestResults/Dramaturgeand attached to the test's result. - The browser chosen by the environment:
DRAMATURGE_BROWSER(chrome,firefox,edge, orsafari),DRAMATURGE_CHANNEL, andDRAMATURGE_HEADED=1, or in code.
Getting Started
dotnet add package Dramaturge.NUnit
Register the shared browser once in the test project, outside any namespace:
using Dramaturge.NUnit;
using NUnit.Framework;
[SetUpFixture]
public class DramaturgeSetUp : DramaturgeSetUpFixture
{
}
Then derive test fixtures from PageTest:
using Dramaturge.NUnit;
using NUnit.Framework;
using static Dramaturge.Assertions;
public class SignInTests : PageTest
{
[Test]
public async Task SignsIn()
{
await this.Page.NavigateAsync("https://example.com/sign-in");
await this.Page.GetByLabel("Email").FillAsync("someone@example.com");
await this.Page.GetByRole("button", "Sign in").ClickAsync();
await Expect(this.Page.GetByRole("heading", "Welcome")).ToBeVisibleAsync();
}
}
BrowserTest gives a test its Group and NewBrowserAsync, for tests that need several isolated browsers. A test's
browsers are kept on the fixture object, so to run the tests of one fixture in parallel, give it
[FixtureLifeCycle(LifeCycle.InstancePerTestCase)].
The documentation describes the rest of Dramaturge.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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
- Dramaturge (>= 0.0.1)
- NUnit (>= 4.0.0)
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.0.1 | 38 | 10/8/2026 |