Onboard Testing
Complete test coverage workflow - from exploration to passing tests
Claude CodeGeneric
---
description: "Complete test coverage workflow - from exploration to passing tests"
argument-hint: "<focus-area-or-feature-description>"
---
### Step 1: Onboard Testing Overview
## Overview
This command orchestrates the complete test coverage workflow in a single execution:
1. **Phase 1**: Read project context and explore application
2. **Phase 2**: Generate lightweight test plan
3. **Phase 3**: Generate and verify test cases (create + fix until passing)
4. **Phase 4**: Triage failures and fix test issues
5. **Phase 5**: Log product bugs
6. **Phase 6**: Final report
### Step 2: Security Notice
## SECURITY NOTICE
**CRITICAL**: Never read the `.env` file. It contains ONLY secrets.
**SECRETS** (go in .env ONLY - never in .env.testdata):
- Variables containing: PASSWORD, SECRET, TOKEN, KEY, CREDENTIALS, API_KEY
- Examples: TEST_USER_PASSWORD, TEST_API_KEY, TEST_AUTH_TOKEN, TEST_SECRET
**TEST DATA** (go in .env.testdata - safe to commit):
- URLs: TEST_BASE_URL, TEST_API_URL
- Emails: TEST_USER_EMAIL, TEST_OWNER_EMAIL
- Non-sensitive inputs: TEST_CHECKOUT_FIRST_NAME, TEST_DEFAULT_TIMEOUT
**Rule**: If a variable name contains PASSWORD, SECRET, TOKEN, or KEY - it's a secret.
Reference secret variable names only (e.g., ${TEST_USER_PASSWORD}) - values injected at runtime.
The `.env` file access is blocked by settings.json.
### Step 3: Arguments
Focus area: $ARGUMENTS
### Step 4: Read Knowledge Base
## Knowledge Base Context
Before proceeding, read the curated knowledge base to inform your work:
**Location:** `.bugzy/runtime/knowledge-base.md`
**Purpose:** The knowledge base is a living collection of factual knowledge - what we currently know and believe to be true about this project, its patterns, and its context. This is NOT a historical log, but a curated snapshot that evolves as understanding improves.
**How to Use:**
1. Read the knowledge base to understand:
- Project-specific patterns and conventions
- Known behaviors and system characteristics
- Relevant context from past work
- Documented decisions and approaches
2. Apply this knowledge to:
- Make informed decisions aligned with project patterns
- Avoid repeating past mistakes
- Build on existing understanding
- Maintain consistency with established practices
**Note:** The knowledge base may not exist yet or may be empty. If it doesn't exist or is empty, proceed without this context and help build it as you work.
### Step 5: Exploration Protocol
## Exploratory Testing Protocol
Before creating or running formal tests, perform exploratory testing to validate requirements and understand actual system behavior. The depth of exploration should adapt to the clarity of requirements.
### Assess Requirement Clarity
Determine exploration depth based on requirement quality:
| Clarity | Indicators | Exploration Depth | Goal |
|---------|-----------|-------------------|------|
| **Clear** | Detailed acceptance criteria, screenshots/mockups, specific field names/URLs/roles, unambiguous behavior, consistent patterns | Quick (1-2 min) | Confirm feature exists, capture evidence |
| **Vague** | General direction clear but specifics missing, incomplete examples, assumed details, relative terms ("fix", "better") | Moderate (3-5 min) | Document current behavior, identify ambiguities, generate clarification questions |
| **Unclear** | Contradictory info, multiple interpretations, no examples/criteria, ambiguous scope ("the page"), critical details missing | Deep (5-10 min) | Systematically test scenarios, document patterns, identify all ambiguities, formulate comprehensive questions |
**Examples:**
- **Clear:** "Change 'Submit' button from blue (#007BFF) to green (#28A745) on /auth/login. Verify hover effect."
- **Vague:** "Fix the sorting in todo list page. The items are mixed up for premium users."
- **Unclear:** "Improve the dashboard performance. Users say it's slow."
### Quick Exploration (1-2 min)
**When:** Requirements CLEAR
**Steps:**
1. Navigate to feature (use provided URL), verify loads without errors
2. Verify key elements exist (buttons, fields, sections mentioned)
3. Capture screenshot of initial state
4. Document:
```markdown
**Quick Exploration (1 min)**
Feature: [Name] | URL: [Path]
Status: ✅ Accessible / ❌ Not found / ⚠️ Different
Screenshot: [filename]
Notes: [Immediate observations]
- Decision: ✅ Matches → Test creation | ❌/⚠️ Doesn't match → Moderate Exploration
Time Limit: 1-2 minutes
Moderate Exploration (3-5 min)
When: Requirements VAGUE or Quick Exploration revealed discrepancies
Steps:
- Navigate using appropriate role(s), set up preconditions, ensure clean state
- Test primary user flow, document steps and behavior, note unexpected behavior
- Capture before/after screenshots, document field values/ordering/visibility
- Compare to requirement: What matches? What differs? What's absent?
- Identify specific ambiguities:
**Moderate Exploration (4 min)** **Explored:** Role: [Admin], Path: [Steps], Behavior: [What happened] **Current State:** [Specific observations with examples] - Example: "Admin view shows 8 sort options: By Title, By Due Date, By Priority..." **Requirement Says:** [What requirement expected] **Discrepancies:** [Specific differences] - Example: "Premium users see 5 fewer sorting options than admins" **Ambiguities:** 1. [First ambiguity with concrete example] 2. [Second if applicable] **Clarification Needed:** [Specific questions] - Assess severity using Clarification Protocol
- Decision: 🟢 Minor → Proceed with assumptions | 🟡 Medium → Async clarification, proceed | 🔴 Critical → Stop, escalate
Time Limit: 3-5 minutes
Deep Exploration (5-10 min)
When: Requirements UNCLEAR or critical ambiguities found
Steps:
Define Exploration Matrix: Identify dimensions (user roles, feature states, input variations, browsers)
**Syst
Maintain Onboard Testing?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[Onboard Testing on getagentictools](https://getagentictools.com/loops/bugzy-ai-test-plan-project-name?ref=badge)