Clean Pytest
LeoYeAI/openclaw-master-skills
Write clean, maintainable pytest tests using Fake-based testing, contract testing, and dependency injection patterns.
A skill your agent uses when setting up, running, or debugging integration tests against real Apple Mail.
$ npx skills add s-morgan-jeffries/apple-mail-fast-mcp --skill integration-testing -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install s-morgan-jeffries/apple-mail-fast-mcp integration-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/s-morgan-jeffries/apple-mail-fast-mcp.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/integration-testing .claude/skills/integration-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 "integration-testing" agent skill from https://github.com/s-morgan-jeffries/apple-mail-fast-mcp/tree/main/.claude/skills/integration-testing into .claude/skills/integration-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "integration-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/s-morgan-jeffries/apple-mail-fast-mcp/tree/main/.claude/skills/integration-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 s-morgan-jeffries/apple-mail-fast-mcp --skill integration-testing -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install s-morgan-jeffries/apple-mail-fast-mcp integration-testing --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/s-morgan-jeffries/apple-mail-fast-mcp.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/integration-testing .agents/skills/integration-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 "integration-testing" agent skill from https://github.com/s-morgan-jeffries/apple-mail-fast-mcp/tree/main/.claude/skills/integration-testing into .agents/skills/integration-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "integration-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 s-morgan-jeffries/apple-mail-fast-mcp --skill integration-testing -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install s-morgan-jeffries/apple-mail-fast-mcp integration-testing --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/s-morgan-jeffries/apple-mail-fast-mcp.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/integration-testing .cursor/skills/integration-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 "integration-testing" agent skill from https://github.com/s-morgan-jeffries/apple-mail-fast-mcp/tree/main/.claude/skills/integration-testing into .cursor/skills/integration-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "integration-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/s-morgan-jeffries/apple-mail-fast-mcp.git --path .claude/skills/integration-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 s-morgan-jeffries/apple-mail-fast-mcp --skill integration-testing -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install s-morgan-jeffries/apple-mail-fast-mcp integration-testing --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/s-morgan-jeffries/apple-mail-fast-mcp.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/integration-testing .gemini/skills/integration-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 "integration-testing" agent skill from https://github.com/s-morgan-jeffries/apple-mail-fast-mcp/tree/main/.claude/skills/integration-testing into .gemini/skills/integration-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "integration-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 s-morgan-jeffries/apple-mail-fast-mcp integration-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 s-morgan-jeffries/apple-mail-fast-mcp --skill integration-testing -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/s-morgan-jeffries/apple-mail-fast-mcp.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/integration-testing .github/skills/integration-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 "integration-testing" agent skill from https://github.com/s-morgan-jeffries/apple-mail-fast-mcp/tree/main/.claude/skills/integration-testing into .github/skills/integration-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "integration-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 s-morgan-jeffries/apple-mail-fast-mcp --skill integration-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 s-morgan-jeffries/apple-mail-fast-mcp integration-testing --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/s-morgan-jeffries/apple-mail-fast-mcp.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/integration-testing .opencode/skills/integration-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 "integration-testing" agent skill from https://github.com/s-morgan-jeffries/apple-mail-fast-mcp/tree/main/.claude/skills/integration-testing into .opencode/skills/integration-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "integration-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.
integration-testingA skill your agent uses when setting up, running, or debugging integration tests against real Apple Mail.
Integration Testing is an agent skill from s-morgan-jeffries/apple-mail-fast-mcp. Use when setting up, running, or debugging integration tests against real Apple Mail. Also use when unit tests pass but behavior seems wrong, when adding new AppleScript operations, or when you need to understand why mocked tests are insufficient for this project.
Its SKILL.md is about 1.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 Integration testing and Unit testing. It works with Python, Model Context Protocol and Gmail. The repository describes itself as: 🤖 MCP server for Apple Mail - Manage emails with AI using Claude Desktop. Search, send, organize mail with natural language. The licence is MIT.
2 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit ed0cfbc. 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:
makepytestFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
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.
Integration Testing loads about 1.2k tokens when it runs. Until then it costs about 71 tokens; SKILL.md has 272 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 s-morgan-jeffries/apple-mail-fast-mcp at commit ed0cfbc, republished under its MIT licence (© s-morgan-jeffries). 272 words, ~1,162 tokens.
.claude/skills/integration-testing/SKILL.md (or your agent's skills folder).Unit tests mock _run_applescript() and test Python logic only. They CANNOT catch:
name, id, size selector collisions)The OmniFocus project's story: A variable naming typo went undetected by 400+ unit tests because they all mocked the AppleScript boundary. Only integration tests against the real app caught it. This lesson applies equally to Apple Mail.
| Tier | Speed | What it catches | When to run |
|---|---|---|---|
| Unit (mocked) | ~1s, 99 tests | Python logic, parsing, validation | Every change |
| Integration (real) | ~30s | AppleScript bugs, Mail.app quirks | New AppleScript code |
| E2E (full MCP) | ~30s | Tool registration, parameter passing | New/modified tools |
# Set test account (default: "Gmail")
export MAIL_TEST_ACCOUNT="Gmail"
# Run integration tests
make test-integration# Integration tests are opt-in
pytest tests/integration/ --run-integration -v
# Or via Makefile
make test-integrationimport pytest
from apple_mail_fast_mcp.mail_connector import AppleMailConnector
# Skip unless explicitly enabled
pytestmark = pytest.mark.skipif(
"not config.getoption('--run-integration')",
reason="Integration tests disabled by default."
)
class TestMailIntegration:
@pytest.fixture
def connector(self) -> AppleMailConnector:
return AppleMailConnector()
@pytest.fixture
def test_account(self) -> str:
import os
return os.getenv("MAIL_TEST_ACCOUNT", "Gmail")
def test_list_mailboxes(self, connector, test_account):
"""Verify we can list mailboxes from a real account."""
result = connector.list_mailboxes(test_account)
assert isinstance(result, list)
assert len(result) > 0
# INBOX should always exist
assert any("INBOX" in mb for mb in result)
@pytest.mark.skip(reason="Sends real email - enable manually")
def test_draft_send_now(self, connector):
"""Test sending a draft - enable manually only."""
...# Destructive operations (send, delete, move) should be:
# 1. Skipped by default
# 2. Require explicit --run-integration flag
# 3. Require MAIL_TEST_ACCOUNT environment variable
# 4. Target a specific test account, never "all accounts"@pytest.fixture
def test_account(self) -> str:
"""Configurable test account - never hardcode."""
import os
return os.getenv("MAIL_TEST_ACCOUNT", "Gmail")# If test creates data (mailbox, flag), clean up in fixture teardown
@pytest.fixture
def test_mailbox(self, connector, test_account):
name = f"MCP-Test-{uuid.uuid4()}"
connector.create_mailbox(test_account, name)
yield name
try:
# Cleanup - don't fail if already deleted
connector.delete_mailbox(test_account, name)
except Exception:
passIf you wrote or modified AppleScript in mail_connector.py, integration tests must cover that operation before merge.
This is not optional. This is not "nice to have." Unit tests with mocked _run_applescript() give false confidence about AppleScript correctness.
MAIL_TEST_ACCOUNT matches an actual configured account name in Mail.appAppleMailConnector(timeout=120)© s-morgan-jeffries, MIT. 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 .claude/skills/integration-testing of s-morgan-jeffries/apple-mail-fast-mcp.
Open the folder on GitHubat commit ed0cfbc
Integration 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 |
|---|---|---|---|---|---|---|
| Integration Testing this skills-morgan-jeffries/apple-mail-fast-mcp | 104 | — | ~1.2k | Automated safety check: Pass | MIT | |
| Clean PytestLeoYeAI/openclaw-master-skills | 2.2k | — | ~4.2k | Automated safety check: Pass | MIT | |
| JS-in-HTML Testingliaohch3/claude-tap | 3.3k | — | ~924 | Automated safety check: Pass | MIT | |
| Build And Testdtprj/dongting | 208 | — | ~1.1k | Automated safety check: Pass | Apache-2.0 | |
| Temporal Python Testingwshobson/agents | 40k | 12 repos | ~1.2k | Automated safety check: Pass | MIT | |
| Zizkadb TestZIZKA-AI-SL/ZizkaDB | 123 | — | ~358 | Automated safety check: Pass | Custom licence |
LeoYeAI/openclaw-master-skills
Write clean, maintainable pytest tests using Fake-based testing, contract testing, and dependency injection patterns.
liaohch3/claude-tap
Tests JavaScript embedded in an HTML file in two layers: pytest checks of the logic ported to Python, and Playwright runs in a real browser for the DOM.
dtprj/dongting
Build/test commands, and unit testing key points including BugLog handling guidelines.
wshobson/agents
Test Temporal workflows with pytest, time-skipping, and mocking strategies.
ZIZKA-AI-SL/ZizkaDB
Run the full ZizkaDB test suite across all layers — lint, Python unit tests, SDK tests, MCP tests, TypeScript tests, and dashboard build verification.
adeze/raindrop-mcp
MCP Testing Strategies with Vitest, Inspector, and Integration Tests
s-morgan-jeffries/apple-mail-fast-mcp
Use BEFORE adding any new tool, parameter, or endpoint to the Apple Mail MCP server.
s-morgan-jeffries/apple-mail-fast-mcp
A skill your agent uses when writing, modifying, or debugging ANY AppleScript that interacts with Apple Mail.
s-morgan-jeffries/apple-mail-fast-mcp
A skill your agent uses when optimizing Apple Mail MCP operations, diagnosing slow queries, adding new filtering logic, or modifying how data is fetched from Mail.app.
s-morgan-jeffries/apple-mail-fast-mcp
A skill your agent uses when the user wants to release a new version.
Works with
Categories
A skill your agent uses when setting up, running, or debugging integration tests against real Apple Mail. Integration Testing is an agent skill from s-morgan-jeffries/apple-mail-fast-mcp. Use when setting up, running, or debugging integration tests against real Apple Mail.
Integration Testing fits situations like: debugging integration tests against real Apple Mail; unit tests pass but behavior seems wrong; adding new AppleScript operations; you need to understand why mocked tests are insufficient for this project.
Run `npx skills add s-morgan-jeffries/apple-mail-fast-mcp --skill integration-testing -a claude-code`. Or copy the skill folder (.claude/skills/integration-testing in s-morgan-jeffries/apple-mail-fast-mcp) into .claude/skills/integration-testing in your project. Claude Code loads it when a task matches its description.
Run `npx skills add s-morgan-jeffries/apple-mail-fast-mcp --skill integration-testing -a codex`. Or copy the skill folder (.claude/skills/integration-testing in s-morgan-jeffries/apple-mail-fast-mcp) into .agents/skills/integration-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 s-morgan-jeffries/apple-mail-fast-mcp --skill integration-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/integration-testing, .gemini/skills/integration-testing, .github/skills/integration-testing and .opencode/skills/integration-testing in your project.
Going by SKILL.md and its folder, Integration Testing needs the command-line tools its instructions call (make and pytest). Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. 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.
Integration Testing is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 4.6k 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 Integration Testing: Clean Pytest (LeoYeAI/openclaw-master-skills, 2.2k stars), JS-in-HTML Testing (liaohch3/claude-tap, 3.3k stars), Build And Test (dtprj/dongting, 208 stars) and Temporal Python Testing (wshobson/agents, 40k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
s-morgan-jeffries (a GitHub user) maintains it in s-morgan-jeffries/apple-mail-fast-mcp, which has 104 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on September 9, 2026.
Source: s-morgan-jeffries/apple-mail-fast-mcp on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.