Python Testing Patterns
jh941213/my-cc-harness
Implement comprehensive testing strategies with pytest, fixtures, mocking, and test-driven development.
Run tests, verify changes, and collect diagnostics. An agent skill from nteract/nteract.
$ npx skills add nteract/nteract --skill testing -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install nteract/nteract testing --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/nteract/nteract.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/testing .claude/skills/testing && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "testing" agent skill from https://github.com/nteract/nteract/tree/main/.agents/skills/testing into .claude/skills/testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "testing", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/nteract/nteract/tree/main/.agents/skills/testingType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add nteract/nteract --skill testing -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install nteract/nteract testing --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/nteract/nteract.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/testing .agents/skills/testing && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "testing" agent skill from https://github.com/nteract/nteract/tree/main/.agents/skills/testing into .agents/skills/testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "testing", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add nteract/nteract --skill testing -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install nteract/nteract testing --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/nteract/nteract.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/testing .cursor/skills/testing && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "testing" agent skill from https://github.com/nteract/nteract/tree/main/.agents/skills/testing into .cursor/skills/testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "testing", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/nteract/nteract.git --path .agents/skills/testing--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add nteract/nteract --skill testing -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install nteract/nteract testing --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/nteract/nteract.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/testing .gemini/skills/testing && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "testing" agent skill from https://github.com/nteract/nteract/tree/main/.agents/skills/testing into .gemini/skills/testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "testing", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install nteract/nteract testingInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add nteract/nteract --skill testing -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/nteract/nteract.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/testing .github/skills/testing && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "testing" agent skill from https://github.com/nteract/nteract/tree/main/.agents/skills/testing into .github/skills/testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "testing", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add nteract/nteract --skill testing -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install nteract/nteract testing --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/nteract/nteract.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/testing .opencode/skills/testing && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "testing" agent skill from https://github.com/nteract/nteract/tree/main/.agents/skills/testing into .opencode/skills/testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "testing", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
testingRun tests, verify changes, and collect diagnostics. An agent skill from nteract/nteract.
Testing is an agent skill from nteract/nteract. Run tests, verify changes, and collect diagnostics. Use when running tests, writing new tests, verifying code changes before commit, or collecting logs for debugging.
Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Testing & QA, covering Unit testing and End-to-end testing. It works with Python, pnpm and pytest. The repository describes itself as: We're back! Now firing notebooks out of a t-shirt gun. The licence is BSD-3-Clause.
Read from SKILL.md and the folder at commit 414222e. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
cargopnpmpytestpythonpipdenoFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pnpm and pip, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Testing loads about 2.2k tokens when it runs. Until then it costs about 44 tokens; SKILL.md has 667 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from nteract/nteract at commit 414222e, republished under its BSD-3-Clause licence (© nteract). 667 words, ~2,202 tokens.
.claude/skills/testing/SKILL.md (or your agent's skills folder).| Type | Location | Command | Framework |
|---|---|---|---|
| Browser E2E | apps/notebook/e2e/ | pnpm --filter notebook-ui test:e2e:browser | Playwright |
| Native E2E | e2e/specs/ | cargo xtask e2e test | WebdriverIO + Mocha |
| Frontend unit | src/**/__tests__/, apps/notebook/src/**/__tests__/ | pnpm test | Vitest + jsdom |
| Rust unit | inline #[cfg(test)] | cargo test | built-in |
| CLI behavior | crates/runt/tests/*.hone | cargo hone test | Hone |
| Python | python/runtimed/tests/ | pytest | pytest |
After making changes, run the narrowest credible test first, then broader checks.
| Files changed | Test command |
|---|---|
crates/runtimed/src/** | cargo test -p runtimed |
crates/notebook-wire/src/** | cargo test -p notebook-wire && cargo test -p notebook-protocol |
crates/notebook-doc/src/** | cargo test -p notebook-doc |
crates/notebook-protocol/src/** | cargo test -p notebook-protocol |
crates/notebook-sync/src/** | cargo test -p notebook-sync |
crates/kernel-env/src/** | cargo test -p kernel-env |
crates/kernel-launch/src/** | cargo test -p kernel-launch |
crates/runt/src/** | cargo test -p runt |
crates/runt-workspace/src/** | cargo test -p runt-workspace |
crates/runtimed-py/src/** | up rebuild=true |
crates/runtimed-wasm/** | cargo xtask wasm then deno test --allow-read --allow-env --no-check |
apps/notebook/src/** | pnpm test:run |
python/runtimed/src/** | pytest python/runtimed/tests/test_session_unit.py -v |
Multiple crates: cargo test -p runtimed -p notebook-doc.
For daemon/kernel changes: up rebuild=true → create_notebook → create_cell with 1 + 1 → execute_cell → verify output is 2.
For CRDT/doc changes: create_notebook → create_cell → get_cell (verify source) → set_cell → get_cell (verify update).
For kernel-env changes: up rebuild=true → create_notebook → execute import sys; print(sys.executable) → verify Python path.
State which checks ran and what they established. Distinguish compilation, narrow tests, and MCP live verification; name skipped or blocked checks and the behavior they leave unverified.
For example, after narrow tests pass but a live check is unavailable:
The daemon tests passed. I couldn't run the MCP check because nteract-dev wasn't available, so live cell execution is still unverified.
Always run cargo xtask lint --fix before committing.
Config: vitest.config.ts (jsdom environment, globals enabled).
pnpm test # Watch mode
pnpm test:run # Run onceKey locations: src/components/isolated/__tests__/, src/components/outputs/__tests__/, src/components/widgets/__tests__/, apps/notebook/src/lib/__tests__/.
cargo test # All workspace tests
cargo test -p runtimed # Specific crate
cargo test -- --nocapture # Show println! outputDeclarative bash-based tests in crates/runt/tests/*.hone.
cargo hone test # All hone tests
cargo hone test cli.hone # Specific fileAssertions: ASSERT exit_code == 0, ASSERT stdout contains "text", ASSERT stdout matches /pattern/.
Two venvs: workspace (.venv at root) for dev, and python/runtimed/.venv for isolated pytest.
# Setup test venv
cd python/runtimed && python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
cd ../../crates/runtimed-py && VIRTUAL_ENV=../../python/runtimed/.venv maturin develop
# Run
pytest python/runtimed/tests/test_session_unit.py -v # Unit (no daemon)
SKIP_INTEGRATION_TESTS=1 pytest python/runtimed/tests/ -v # Skip integration
RUNTIMED_INTEGRATION_TEST=1 pytest python/runtimed/tests/ -v # CI mode (spawns daemon)Playwright tests in apps/notebook/e2e/ are the preferred E2E surface for
notebook UI, runtime, fixture, and renderer behavior. They use the Vite browser
relay plus the dev daemon, avoiding the slower Tauri WebDriver app build.
pnpm --filter notebook-ui test:e2e:browser -- --project=chromium
pnpm --filter notebook-ui test:e2e:browser -- --project=chromium apps/notebook/e2e/execute-cell-output.spec.ts
pnpm --filter notebook-ui test:e2e:browser:portless -- --project=chromiumNative WebDriverIO tests should stay focused on Tauri-specific setup: app shell boot, cwd-derived untitled notebook behavior, launcher/bootstrap behavior, and other issues that require the real Tauri process.
cargo xtask e2e build # Build with WebDriver support (required first)
cargo xtask e2e test # Native smoke/default run
cargo xtask e2e test-all # Native smoke plus long-tail Tauri fixtures
cargo xtask e2e test-fixture <notebook> <spec> # Single fixture testFixture test: Create notebook in crates/notebook/fixtures/audit-test/, create spec in e2e/specs/, add to FIXTURE_SPECS in e2e/wdio.conf.js, add to crates/xtask/src/main.rs, add to CI.
Regular test: Create a spec in e2e/specs/. It is picked up automatically if not in FIXTURE_SPECS.
| Helper | Purpose |
|---|---|
waitForAppReady() | Waits for toolbar (15s). Use in every before() hook |
waitForKernelReady() | Waits for kernel idle/busy (60s). Superset of above |
executeFirstCell() | Focuses first code cell, Shift+Enter |
waitForCellOutput(cell) | Waits for stream output |
waitForOutputContaining(cell, text) | Waits for specific output text |
approveTrustDialog() | Clicks "Trust & Install" |
typeSlowly(text) | Character-by-character (30ms). Required for CodeMirror |
setupCodeCell() | Finds/creates code cell, focuses editor, selects all |
data-testid attributes. Text selectors return broken refs.browser.execute() + browser.waitUntil(). executeAsync() is unsupported.typeSlowly() for CodeMirror. Fast input drops characters.browser.execute() for iframe testing. switchToFrame() is broken.data-testid: notebook-toolbar, save-button, add-code-cell-button, add-markdown-cell-button, start-kernel-button, restart-kernel-button, interrupt-kernel-button, run-all-button, deps-toggle, trust-dialog, trust-approve-button, deps-panel, deps-add-input.
data-slot: output-area, ansi-stream-output, ansi-error-output.
Other: [data-cell-type="code"], [data-cell-type="markdown"], .cm-content[contenteditable="true"], iframe[sandbox].
Use env -i for system diagnostics to avoid dev env vars (RUNTIMED_DEV, RUNTIMED_WORKSPACE_PATH) leaking through. env -i also clears PATH, so use the installed nteract link (~/.local/bin by default) and --channel to pick the installation.
# Nightly (system)
env -i HOME=$HOME "$HOME/.local/bin/nteract" --channel nightly diagnostics
# Stable (system)
env -i HOME=$HOME "$HOME/.local/bin/nteract" --channel stable diagnostics
# Dev daemon (no env -i needed)
RUNTIMED_DEV=1 RUNTIMED_WORKSPACE_PATH="$(pwd)" ./target/debug/runt diagnosticsOther system commands follow the same env -i pattern:
env -i HOME=$HOME "$HOME/.local/bin/nteract" --channel nightly daemon status
env -i HOME=$HOME "$HOME/.local/bin/nteract" --channel nightly daemon logs -f
env -i HOME=$HOME "$HOME/.local/bin/nteract" --channel stable psRead files from tarball without extracting:
tar xzf <archive>.tar.gz -O doctor.json
tar xzf <archive>.tar.gz -O runtimed.log | grep -i 'error\|panic'Context for '...' missing in notebook.logruntimed.log.1 (previous session)[upgrade] in notebook.log[daemon-kernel] or kernel_status[notebook-sync] or daemon:disconnectedwebview:error or webview:warn in notebook.logdoctor.json launchd_service statusPrefer fast integration tests over slow E2E. Use E2E for critical user journeys, integration tests for daemon behavior, unit tests for algorithms.
© nteract, BSD-3-Clause. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/testing of nteract/nteract.
Open the folder on GitHubat commit 414222e
Testing next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Testing this skillnteract/nteract | 179 | — | ~2.2k | Automated safety check: Pass | BSD-3-Clause | |
| Python Testing Patternsjh941213/my-cc-harness | 126 | 17 repos | ~5.4k | Automated safety check: Pass | None | |
| Specx Testsmaksimzayats/specx | 202 | — | ~1.9k | Automated safety check: Pass | MIT | |
| Python Testingmacalbert/envilder | 138 | — | ~3.1k | Automated safety check: Pass | MIT | |
| Testing Patternssoftspark/ai-toolkit | 179 | — | ~1.6k | Automated safety check: Pass | Apache-2.0 | |
| Testing Pyericrisco/rsc-harness | 167 | — | ~3.2k | Automated safety check: Pass | MIT |
jh941213/my-cc-harness
Implement comprehensive testing strategies with pytest, fixtures, mocking, and test-driven development.
maksimzayats/specx
Add or refine tests for specx Python services. An agent skill from maksimzayats/specx.
macalbert/envilder
Mandatory testing conventions including AAA pattern, test naming, assertions, and mocks.
softspark/ai-toolkit
Testing strategy: pyramid, AAA, mocks/fakes/stubs, flaky tests, coverage.
ericrisco/rsc-harness
A skill your agent uses when writing or fixing Python tests with pytest — especially when the suite is green but bugs still ship, when you must decide where to patch a mocked dependency, when…
ArabelaTso/Skills-4-SE
Explains test failures and provides actionable debugging guidance.
nteract/nteract
Automerge sync protocol internals, document model (OpSet, ChangeGraph, fork/merge, save/load lifecycle), and higher-level protocol design patterns.
nteract/nteract
Develop, debug, and manage the runtimed daemon, Python bindings, and build system.
nteract/nteract
The end-to-end cell execution pipeline from MCP tool call through daemon to kernel and back.
nteract/nteract
Pull and triage submitted nteract diagnostics archives from Cloudflare using a diagnostics id/token.
nteract/nteract
Use nteract notebooks as a persistent Python REPL. An agent skill from nteract/nteract.
nteract/nteract
Architecture and documentation framing for cross-cutting repo decisions, docs taxonomy placement, ADRs, memos, PRDs, implementation plans, audits, measurements, runbooks, and source-grounded…
Categories
Run tests, verify changes, and collect diagnostics. An agent skill from nteract/nteract. Testing is an agent skill from nteract/nteract. Run tests, verify changes, and collect diagnostics.
Testing fits situations like: writing new tests; verifying code changes before commit; collecting logs for debugging.
Run `npx skills add nteract/nteract --skill testing -a claude-code`. Or copy the skill folder (.agents/skills/testing in nteract/nteract) into .claude/skills/testing in your project. Claude Code loads it when a task matches its description.
Run `npx skills add nteract/nteract --skill testing -a codex`. Or copy the skill folder (.agents/skills/testing in nteract/nteract) into .agents/skills/testing in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add nteract/nteract --skill testing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/testing, .gemini/skills/testing, .github/skills/testing and .opencode/skills/testing in your project.
Going by SKILL.md and its folder, Testing needs the command-line tools its instructions call (cargo, pnpm, pytest, python, pip and deno). Our summary lists: Python 3.
SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Testing is published under the BSD-3-Clause licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.2k tokens (SKILL.md is roughly 8.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Testing: Python Testing Patterns (jh941213/my-cc-harness, 126 stars), Specx Tests (maksimzayats/specx, 202 stars), Python Testing (macalbert/envilder, 138 stars) and Testing Patterns (softspark/ai-toolkit, 179 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
nteract (a GitHub organization) maintains it in nteract/nteract, which has 179 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 7, 2026.
Source: nteract/nteract on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.