Skip to content

Questions? Join our Discord.

JasperFx

Formal support for Wolverine, Marten, and Polecat is available through our Support Plans.

Authoring Critter Stack specs with Bobcat Added in 1.7.0 ​

API reference for authoring Critter Stack specifications with Bobcat's code-first (projected) model: ordinary xUnit v3, TUnit, NUnit or MSTest test methods that render as Given/When/Then. Covers the spec project (xunit.v3 4.x on Microsoft.Testing.Platform 2, the global.json test runner, Bobcat.Generators and the BOBCAT037 interceptor opt-in), CritterStackSpec (store-only, Marten/Polecat/Fisher; shipped in WolverineFx.Bobcat from 1.0.0-rc.2) and WolverineSpec / WolverineHttpSpec with the full vocabulary (GivenEvents, GivenContext, WhenReceived, WhenPosted, ThenEvents, ThenAggregate, ThenReadModel, ThenDocuments, ThenRefusedWith, ThenTheActSucceeded, ThenCaused for cascaded events, WhenTracked over HTTP, body-less HTTP acts (WhenPostedTo / WhenPutTo / WhenPatchedTo / WhenDeletedAt), messages (ThenHandled / ThenNotHandled, ThenMessagesScheduled, the Activity line and Message activity report), scheduled messages (WhenScheduledMessagesAreExecuted, the only-scheduled guard, GivenReceived), DCB boundaries, WhileActing/ThenRetried, ThenEventuallyCaused, several stores, one tenant with ForTenant), partial objects and collection expectations (Expect.Exactly / InAnyOrder / Containing / NoneOf / Rows, tolerances; the lambda and nameof forms as the refactor-friendly ones; what a partial object's failures say: BOBCAT032 for a stale column, a read-only member no constructor takes, a cell that cannot be read as its member, an indexer in a path, how any-order pairing resolves without an ambiguity error, and which fill policy filled an unspecified member), step helpers, SpecAssert, failure evidence (SpecAttachment, IFailureCapture screenshots on a failed step) and SpecLog step logs, tables, decision tables (comma-delimited list cells) and set verification, one spec per table row ([BobcatTheory] with [BobcatExamples] inline pipe-table examples, BOBCAT042), Acceptance specs that run but cannot fail the build (Lifecycle.Acceptance, acceptance: failing, BOBCAT_LIFECYCLE=strict) and Pending stubs, domain types in a cell (CellValues.Register, IParsable, BadCellException), binding a spec to its Event Model slice ([BobcatSpec], [BobcatSlice], [EventModelRole], [EventModelTrigger], query and automation slices, BOBCAT045 for an act behind an unattributed helper, [assembly: EventModelName]), where a spec belongs (store, message, HTTP or UI) and the driver pattern for UI specs, data-driven specs (theory rows as their own identities, [BobcatTheory], [BobcatExample] labels, ParentSpecId), and running specs (dotnet test, the bobcat CLI with run --failed / --repeat, supervised bobcat run with --retries / --workers / --stall, the JSON results file via BOBCAT_RESULTS or bobcat run --json, the HTML results page via bobcat run --html or bobcat results-html, Stoat monitor publishing, the supervisor, recovery hints, its duration ledger as a CI artifact, TRX report for CI, the resident runner from bobcat ui and from Stoat (bobcat resident, stoat runner, the busy / unknown-spec / unsupported-mode / empty refusals, cold versus warm, the BOBCAT_* variables the child never inherits), publishing to several consoles with BOBCAT_MONITOR_URL, the local commit-and-push gate: GateDeclaration with resource tracks and a worker budget over every test project, one run per unit under Supervisor.RunTag), and moving to 1.0.0-rc.2, where Bobcat dropped JasperFx and Wolverine (CritterStackSpec not found CS0246, TypeLoadException for Bobcat.CritterStack.CritterStackScenario, CS0433, ActTrigger replacing TriggerKind on [EventModelTrigger], Bobcat.Resilience recovery hints, PreflightResults, no JasperFx VersionOverride). Also covers bobcat ui (the run board and Event Model canvas on port 5525, its model switcher and per-source push provenance, GET /api/event-models, and why a sources-disagree hotspot needs both the application and spec halves) and its JSON run queries for troubleshooting a red run (list-runs, run-status, failing-tests, failing-spec, flaky-ledger, await-run, export-run, event-model, slice-coverage, watch-event-model), reading a run back over HTTP (GET /api/runs?tag=, /api/runs/{runId}, /export as CTRF, JUnit or NDJSON, the same routes on Stoat's receiver), how to see the rendered specification rather than a pass count (the per-spec page, failing-spec --uid for any scenario, the results file, the HTML page, the export) and why a {placeholder} in BobcatStepInterceptors.g.cs is not a rendering failure, including port 5525 already in use and a run shown as orphaned while it runs (BOBCAT_MONITOR_ORPHAN_SECONDS).

Use when writing, reviewing or running a Bobcat spec, when a spec passes or fails for a reason you do not understand, when a step fails with 'was only scheduled for later, so no handler ran' or a scheduled message's handler never runs in a spec, when ThenHandled fails, when every test after one failure reports 'Environment lost' (SpecCatastrophicException, SpecEnvironmentLostException), when an agent needs to read why a run is red, when a BOBCAT diagnostic appears, when a spec fails with a MissingMethodException or TypeLoadException from a Bobcat/WolverineFx.Bobcat/JasperFx version mismatch, or when wiring specs into CI, and (working on Bobcat itself) when monitor-events.ts is missing or the results-schema compatibility check fails. Gherkin, .feature files and CritterStackFixture no longer exist.

Skill details ​

  • Skill name: critterstack-sdd-bobcat-authoring
  • Applies to: wolverine, marten, polecat, fisher
  • Tags: sdd, bobcat, specifications, event-modeling, testing, xunit, tunit, scheduled-messages, wolverinefx-bobcat, marker-steps, spec-assert, ci, supervisor, gate, local-gates, stoat, preview, rendering, inherited-specs, trx, bobcat-ui, run-board, troubleshooting, theory, data-driven, results-json, results-html
  • Added in: 1.7.0
  • License: Proprietary. Copyright JasperFx Software LLC.

Proprietary. Copyright © JasperFx Software LLC. See the license for terms.