testing-with-boc Skill
Write tests for bocpy Behavior-Oriented Concurrency code. Use when: writing pytest tests for @when behaviors, Cown scheduling, send/receive messaging, cown grouping, chained behaviors, exception propagation. Covers parameter-count rules, module-level class requirements, and the quiesce()+unwrap() result-reading pattern Published by microsoft in bocpy.
What is testing-with-boc Skill?
Write tests for bocpy Behavior-Oriented Concurrency code. Use when: writing pytest tests for @when behaviors, Cown scheduling, send/receive messaging, cown grouping, chained behaviors, exception propagation. Covers parameter-count rules, module-level class requirements, and the quiesce()+unwrap() result-reading pattern Published by microsoft in bocpy. This profile combines repository metadata with install, compatibility, and usage signals so developers can quickly decide whether it fits their agent workflow before opening the source repository.
Automated repository signals based on public metadata such as recency, license, installation evidence, and adoption. These are not a security audit or endorsement.
Key capabilities
- Includes SKILL.md support
- Reusable instructions support
- Testing
- Data analysis
- Design and media
- Writing
- Testing use cases
Technical details
- Install or run with Copy skill directory
When to use testing-with-boc Skill
- Use it for testing.
- Use it for data analysis.
- Use it for design and media.
- Use it for writing.
Built with
Editorial notes
Source
- Creator: microsoft
- Repository: microsoft/bocpy
- Skill file: .github/skills/testing-with-boc/SKILL.md
What it does
Write tests for bocpy Behavior-Oriented Concurrency code. Use when: writing pytest tests for @when behaviors, Cown scheduling, send/receive messaging, cown grouping, chained behaviors, exception propagation. Covers parameter-count rules, module-level class requirements, and the quiesce()+unwrap() result-reading pattern
Skill instructions
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, or waitfor helpers inside a behavior or in test code that drives one, stop and read thinking-in-boc first. The right answer is almost always to express the dependency through the cown graph, not through a classical synchronization primitive. Key Concepts | Concept | Description | |---------|-------------| | Cown(value) | A concurrently-owned wrapper. Behaviors receive exclusive temporal access to the cown's .value. | | @when(cowns) | Decorator that schedules the function as a behavior. The decorato
Explore related resources
Frequently asked questions
What is testing-with-boc?
testing-with-boc is a open-source AI agent skill with Copy skill directory. Write tests for bocpy Behavior-Oriented Concurrency code. Use when: writing pytest tests for @when behaviors, Cown scheduling, send/receive messaging, cown grouping, chained behaviors, exception.
Who is testing-with-boc best for?
testing-with-boc is best for reusing agent instructions, scripts, and references, testing workflows, data analysis workflows, design and media workflows.
How do I install testing-with-boc?
Install or run testing-with-boc using Copy skill directory. Check testing-with-boc for the latest setup command.
Is testing-with-boc actively maintained?
testing-with-boc may need a closer maintenance check before production use.
Auto-fetched from GitHub.