BumpyClock/agent-templates / skills/programming
programming
UnverifiedImplement, debug, refactor, or review code with scoped changes and evidence.
references/gpui/references/test.md
View on GitHub# GPUI tests
Select the smallest context that exercises the affected behavior.
| Contract | Test context |
| --- | --- |
| Pure Rust logic | Ordinary `#[test]` |
| Entity, event, or GPUI executor behavior | `#[gpui::test]` with `TestAppContext` |
| Window, focus, input, or layout behavior | Window-backed `VisualTestContext` |
Match test-support features and setup helpers to the resolved dependency.
A builder property assertion does not test callback dispatch.
A simulated window test does not establish native platform behavior or visual quality.
- For executor and subscription mechanics, use [test mechanics](test-reference.md).
- For test selection, use [component contracts](component-test-rules.md).
- For focused commands and runtime examples, use [test execution](test-examples.md).
Source: [GPUI test context source](https://github.com/zed-industries/zed/blob/main/crates/gpui/src/app/test_context.rs).
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 318k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 318k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 318k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |