Test Suite — The Core Engine
The Test Suite ships with the platform and is always on. It gives you a Run, History, and Conformance view in Studio, plus a small set of built-in suites. Every test is written in a closed, fixed test language — there is no arbitrary code execution — so tests bundled inside a marketplace package are safe to run.
- Closed test language. A fixed set of actions (call an API, create a case, transition a stage, resolve a case, submit through a portal, fast-forward an SLA clock, assert a notification was sent) with
{{variable}} interpolation and structured assertions. No eval, ever.
- Isolated runner. Mutating runs provision disposable, single-use tenants that are always torn down afterwards — even when a test fails — so runs never leave residue or affect real data. Tests can run as different identities (admin, non-admin, separate tenants, or anonymous).
- Always-clean teardown. Every test runs its teardown step whether it passed or failed, so the system returns to a known state.
- Built-in suites. Platform Smoke, a self-cleaning case-lifecycle component suite, and a security suite (anonymous access is rejected, non-admins are forbidden).
- SLA time-travel. Tests can advance an SLA clock instantly to verify warning and breach behaviour — no real waiting.
The Conformance Gate
The Test Suite is what guards the Marketplace. Before a package can be submitted, it must pass a set of deterministic structural checks — no AI involved, so the gate is never flaky:
- a manifest is present, with a name and a valid semver version;
- stage transitions all resolve and at least one terminal stage exists;
- form fields are uniquely named and typed, and every reference resolves;
- the rules dependency graph is acyclic;
- there are no hardcoded tenant or user ids in the artifacts.
Hard gate, kept honest: Passing the structural checks is mandatory for new submissions. Because these checks are deterministic and never depend on an AI service, a slow or unavailable model can never block a legitimate submission.
Structural Test Generation
The Test Suite can generate a baseline of structural tests directly from a case type's definition — checks that the case type loads, that its stage count matches, and that each declared stage is present. This is deterministic, runs in milliseconds, and is available without any add-on. It's the fastest way to get a regression net around a new case type.
HxTest — The AI Add-On
HxTest is the optional, AI-powered layer that generates richer scenario tests on top of the structural baseline. It is a Marketplace app: install HxTest from the Marketplace and a Generated tab appears in the Test Suite, where you can produce scenario tests for a case type. When HxTest is not installed, that tab simply shows an "install from Marketplace" notice — the core Test Suite keeps working exactly as before.
- Scenario generation. HxTest drafts happy-path, required-field, SLA, rule-trigger, and portal tests, each with a plain-English rationale explaining what it checks.
- Advisory and self-validating. Generated scenarios are advisory: every generated test is checked against the closed test language before it is accepted, and invalid ones are discarded. If the AI backend is unavailable, generation simply returns nothing — never an error.
- App-bundled tests. A marketplace app can ship its own test suite; it is validated against the closed test language when registered and can be run on demand by the installing tenant.
Why the split? The deterministic engine and conformance gate must be trusted and always correct — they decide what gets into the Marketplace. AI scenario generation is the least predictable part, so it lives in an opt-in add-on. Teams that don't want AI in the loop simply don't install HxTest, and nothing about their gating changes.
Capabilities
✅
Deterministic Core
A closed test language and isolated runner that always tears down — repeatable results with no residue and no arbitrary code.
🔒
Marketplace Gate
Structural conformance every package must pass before submission — never blocked by a flaky model.
⚡
Instant Baseline
Generate structural tests straight from a case type's definition — no add-on required.
🤖
HxTest Scenarios
Install the HxTest add-on for AI-drafted scenario tests with rationale — advisory, validated, and gracefully optional.