smoke-suite-gate
БесплатноБез исполняемых скриптовНе проверенUse when a team needs a fast per-deploy gate: a smoke suite of 5-15 critical journeys (login, checkout, payment, main read path) that runs in under 5 minutes…
от testland★ 18 звёзд на GitHubОб этом скилле
smoke-suite-gate
Overview
A smoke suite is the minimum end-to-end test set every deploy must pass, gating pre-merge, post-merge to main, post-deploy to staging, and post-deploy to canary. A smoke failure halts the release.
When to use
- The CI/CD pipeline lacks a fast deploy gate; full regression takes too long for per-deploy.
- A canary stage needs a precursor smoke test that's faster than the full canary observation.
- A new release process needs the "first-line defense" check.
For broader coverage, see the team's full E2E suite (per
qa-web-e2e plugin) - smoke is the
narrow, fast subset.
Step 1 - Identify the critical paths
The smoke suite covers 5-15 journeys. Picking criteria:
- High business value - broken = revenue / brand impact within minutes.
- High traffic - most users hit this; broken = many users affected.
- Cross-system - exercises multiple components; broken = integration regression.
Examples by product:
| Product type | Smoke journeys |
|---|---|
| E-commerce | Sign-in, search, add to cart, checkout, confirmation |
| SaaS B2B | Sign-in, dashboard load, primary feature, save, sign-out |
| Banking app | Sign-in, account balance, recent transactions, payment |
| Content site | Home page, article load, search, sign-up |
Step 2 - Implement fast
Smoke tests must run in <5 minutes total. Constraints:
| Aspect | Smoke |
|---|---|
| Per-test budget | 30-60s |
| Total tests | 5-15 (one per critical journey) |
| Setup | Synthetic test account + test-mode payment |
| Assertions | Existence + status code + key text (not exhaustive) |
| Retries | 1 retry on transient failure |
// e2e/smoke/checkout.smoke.spec.ts
import { test, expect } from '@playwright/test';
test.describe('Smoke - checkout', () => {
test('sign in → add to cart → checkout', async ({ page }) => {
// 1. Sign in
await page.goto('/login');
await page.getByLabel('Email').fill(process.env.SMOKE_USER_EMAIL!);
await page.getByLabel('Password').fill(process.env.SMOKE_USER_PASSWORD!);
await page.getByRole('button', { name: /sign in/i }).click();
await expect(page.getByRole('heading', { name: /welcome/i })).toBeVisible({ timeout: 10000 });
// 2. Add to cart
await page.goto('/products/SMOKE-001');
await page.getByRole('button', { name: /add to cart/i }).click();
await expect(page.getByTestId('cart-count')).toHaveText('1');
// 3. Checkout
await page.goto('/checkout');
await page.getByLabel(/card/i).fill('4242 4242 4242 4242');
await page.getByRole('button', { name: /place order/i }).click();
await expect(page.getByRole('heading', { name: /order confirmed/i })).toBeVisible({ timeout: 15000 });
});
});
Note: smoke tests use a pre-seeded test account, test-mode
payment, and a known SKU (SMOKE-001). They don't create or
delete data - pure read flows are best.
Step 3 - Pre-deploy vs post-deploy
| Stage | Smoke check |
|---|---|
| Pre-merge (PR) | Build artifact; deploy to ephemeral env; run smoke; tear down. |
| Post-merge to main | Deploy to staging; run smoke against staging. |
| Post-deploy to staging | Re-run smoke (verifies the deploy didn't break anything). |
| Post-deploy to canary | Smoke runs first; if green, canary observation begins. |
| Post-deploy to prod | Smoke runs against prod (read-only) as the final verification. |
Per stage, smoke acts as the "is this deploy worth proceeding with" gate.
Step 4 - Failure handling
A failing smoke isn't always a real regression - sometimes flake. Pattern:
- name: Run smoke
id: smoke
run: npx playwright test e2e/smoke/ --retries=2 --workers=2
- name: Quarantine repeat failure
if: steps.smoke.outcome == 'failure'
run: |
if [ "${{ steps.smoke.conclusion }}" == "failure" ]; then
# Real failure (failed twice with retries) - block deploy
exit 1
fi
The 2-retry rule kills most transients. A 3-retry-failure smoke test is either:
- A real regression - block the deploy.
- A genuinely flaky test - quarantine + investigate via
flaky-test-quarantine(in the qa-flake-triage plugin).
Don't suppress failures by raising the retry count.
Step 5 - Smoke suite curation
The smoke suite must stay fast. Add tests deliberately:
| Add a test when | Don't add when
Установить smoke-suite-gate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл smoke-suite-gate?
Use when a team needs a fast per-deploy gate: a smoke suite of 5-15 critical journeys (login, checkout, payment, main read path) that runs in under 5 minutes as E2E or API tests and blocks the deploy when it fails, with retries for transient failures.
Как установить скилл smoke-suite-gate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл smoke-suite-gate запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic