bynk.tier.cross_context_needs_system
Error A unit or integration case, or a property, reaches another context's service, directly or through a target service or agent handler that calls one; below system no other context is stood up to call, so the flow belongs in a suite … as system.
Below system a case runs in one process. No other context is stood up, so a unit or integration case, or a property, that reaches another context's service, directly or through a service or agent handler, has nothing to call unless the service is stubbed: stub Pay.authorise(_) returns … substitutes it, and only the services left unstubbed are reported. Stub each service the case reaches, promote the case to a system suite, which wires the contexts, or test the unit that does not cross.
Example
suite demo.desk { case "the desk checks" { let n <- check.call(5) // ✗ `check` calls `demo.vault`, another context }}
suite demo.desk as system { case "the desk checks" { let n <- demo.desk.check(5) // ✓ both contexts are stood up }}In the Book
See also
- The grammar rule it governs:
case. - Every code in its category, Test tiers, on the diagnostic index.
bynk explain bynk.tier.cross_context_needs_systemshows the same from the installed toolchain, without a network.