Core Reporting
Because ZeUnit models test execution as an IObservable<(ZeTest, Fact)> stream, reporters are standard reactive observers implementing IZeReporter (IObserver<(ZeTest, Fact)>).
Built-In Reporters
ConsoleReporter
Writes each executed test's class, method name, Fact.State, individual ZeAssert entries, any errors, and a summary count directly to standard output.
TeamCityReporter
Emits TeamCity service messages (testStarted, testFailed, testIgnored, testFinished) so CI builds report per-test status natively.
StoryReporter (ZeUnit.Story)
Generates a styled HTML report (story.html by default) grouped by test class using Handlebars.Net templates (ClassHeaderPart, TestRowTemplatePart).
dotnet add package ZeUnit.Story
Attaching Reporters with ZeBuilder
Pass one or more IZeReporter instances to ZeBuilder.With(...). Multiple reporters are automatically combined via CompoundReporter:
using System.Reactive.Linq;
using ZeUnit;
using ZeUnit.Reporters;
using ZeUnit.Story;
var builder = new ZeBuilder()
.With(d => d.FromAssembly(typeof(Program).Assembly))
.With(new ConsoleReporter(), new StoryReporter("story.html"));
await ZeGlobal.Unit(builder);
IDE & CI Runners
When running through dotnet test or Visual Studio Test Explorer, ZeUnit.TestAdapter (VisualStudioZeUnitTestAdapter) acts as the VSTest host bridge—streaming discovery metadata (MethodCodeInfo), live test start events, aggregated TestResult outcomes, and unwrapped failure stack traces directly to IFrameworkHandle.