testing-with-boc
Installation
SKILL.md
Testing with Behavior-Oriented Concurrency (BOC)
This skill describes how to write tests for code that uses the bocpy library for
behavior-oriented concurrency. BOC schedules work as behaviors — decorated
functions that run once all required cowns (concurrently-owned data) are
available. Testing BOC programs requires specific patterns because behaviors
execute asynchronously on worker interpreters.
Design guidance: if you find yourself reaching for
time.sleep,threading.Event, polling loops, orwait_for_*helpers inside a behavior or in test code that drives one, stop and readthinking-in-bocfirst. The right answer is almost always to express the dependency through the cown graph, not through a classical synchronization primitive.