mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-04-05 23:17:24 +02:00
bmad-init
This commit is contained in:
parent
b6484a783f
commit
3047aefd40
294 changed files with 38091 additions and 55 deletions
33
_bmad/bmm/workflows/qa-generate-e2e-tests/checklist.md
Normal file
33
_bmad/bmm/workflows/qa-generate-e2e-tests/checklist.md
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# Quinn Automate - Validation Checklist
|
||||
|
||||
## Test Generation
|
||||
|
||||
- [ ] API tests generated (if applicable)
|
||||
- [ ] E2E tests generated (if UI exists)
|
||||
- [ ] Tests use standard test framework APIs
|
||||
- [ ] Tests cover happy path
|
||||
- [ ] Tests cover 1-2 critical error cases
|
||||
|
||||
## Test Quality
|
||||
|
||||
- [ ] All generated tests run successfully
|
||||
- [ ] Tests use proper locators (semantic, accessible)
|
||||
- [ ] Tests have clear descriptions
|
||||
- [ ] No hardcoded waits or sleeps
|
||||
- [ ] Tests are independent (no order dependency)
|
||||
|
||||
## Output
|
||||
|
||||
- [ ] Test summary created
|
||||
- [ ] Tests saved to appropriate directories
|
||||
- [ ] Summary includes coverage metrics
|
||||
|
||||
## Validation
|
||||
|
||||
Run the tests using your project's test command.
|
||||
|
||||
**Expected**: All tests pass ✅
|
||||
|
||||
---
|
||||
|
||||
**Need more comprehensive testing?** Install [Test Architect (TEA)](https://bmad-code-org.github.io/bmad-method-test-architecture-enterprise/) for advanced workflows.
|
||||
110
_bmad/bmm/workflows/qa-generate-e2e-tests/instructions.md
Normal file
110
_bmad/bmm/workflows/qa-generate-e2e-tests/instructions.md
Normal file
|
|
@ -0,0 +1,110 @@
|
|||
# Quinn QA - Automate
|
||||
|
||||
**Goal**: Generate automated API and E2E tests for implemented code.
|
||||
|
||||
**Scope**: This workflow generates tests ONLY. It does **not** perform code review or story validation (use Code Review `CR` for that).
|
||||
|
||||
## Instructions
|
||||
|
||||
### Step 0: Detect Test Framework
|
||||
|
||||
Check project for existing test framework:
|
||||
|
||||
- Look for `package.json` dependencies (playwright, jest, vitest, cypress, etc.)
|
||||
- Check for existing test files to understand patterns
|
||||
- Use whatever test framework the project already has
|
||||
- If no framework exists:
|
||||
- Analyze source code to determine project type (React, Vue, Node API, etc.)
|
||||
- Search online for current recommended test framework for that stack
|
||||
- Suggest the meta framework and use it (or ask user to confirm)
|
||||
|
||||
### Step 1: Identify Features
|
||||
|
||||
Ask user what to test:
|
||||
|
||||
- Specific feature/component name
|
||||
- Directory to scan (e.g., `src/components/`)
|
||||
- Or auto-discover features in the codebase
|
||||
|
||||
### Step 2: Generate API Tests (if applicable)
|
||||
|
||||
For API endpoints/services, generate tests that:
|
||||
|
||||
- Test status codes (200, 400, 404, 500)
|
||||
- Validate response structure
|
||||
- Cover happy path + 1-2 error cases
|
||||
- Use project's existing test framework patterns
|
||||
|
||||
### Step 3: Generate E2E Tests (if UI exists)
|
||||
|
||||
For UI features, generate tests that:
|
||||
|
||||
- Test user workflows end-to-end
|
||||
- Use semantic locators (roles, labels, text)
|
||||
- Focus on user interactions (clicks, form fills, navigation)
|
||||
- Assert visible outcomes
|
||||
- Keep tests linear and simple
|
||||
- Follow project's existing test patterns
|
||||
|
||||
### Step 4: Run Tests
|
||||
|
||||
Execute tests to verify they pass (use project's test command).
|
||||
|
||||
If failures occur, fix them immediately.
|
||||
|
||||
### Step 5: Create Summary
|
||||
|
||||
Output markdown summary:
|
||||
|
||||
```markdown
|
||||
# Test Automation Summary
|
||||
|
||||
## Generated Tests
|
||||
|
||||
### API Tests
|
||||
- [x] tests/api/endpoint.spec.ts - Endpoint validation
|
||||
|
||||
### E2E Tests
|
||||
- [x] tests/e2e/feature.spec.ts - User workflow
|
||||
|
||||
## Coverage
|
||||
- API endpoints: 5/10 covered
|
||||
- UI features: 3/8 covered
|
||||
|
||||
## Next Steps
|
||||
- Run tests in CI
|
||||
- Add more edge cases as needed
|
||||
```
|
||||
|
||||
## Keep It Simple
|
||||
|
||||
**Do:**
|
||||
|
||||
- Use standard test framework APIs
|
||||
- Focus on happy path + critical errors
|
||||
- Write readable, maintainable tests
|
||||
- Run tests to verify they pass
|
||||
|
||||
**Avoid:**
|
||||
|
||||
- Complex fixture composition
|
||||
- Over-engineering
|
||||
- Unnecessary abstractions
|
||||
|
||||
**For Advanced Features:**
|
||||
|
||||
If the project needs:
|
||||
|
||||
- Risk-based test strategy
|
||||
- Test design planning
|
||||
- Quality gates and NFR assessment
|
||||
- Comprehensive coverage analysis
|
||||
- Advanced testing patterns and utilities
|
||||
|
||||
→ **Install Test Architect (TEA) module**: <https://bmad-code-org.github.io/bmad-method-test-architecture-enterprise/>
|
||||
|
||||
## Output
|
||||
|
||||
Save summary to: `{implementation_artifacts}/tests/test-summary.md`
|
||||
|
||||
**Done!** Tests generated and verified.
|
||||
42
_bmad/bmm/workflows/qa-generate-e2e-tests/workflow.yaml
Normal file
42
_bmad/bmm/workflows/qa-generate-e2e-tests/workflow.yaml
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
name: qa-generate-e2e-tests
|
||||
description: 'Generate end to end automated tests for existing features. Use when the user says "create qa automated tests for [feature]"'
|
||||
|
||||
# Critical variables from config
|
||||
config_source: "{project-root}/_bmad/bmm/config.yaml"
|
||||
implementation_artifacts: "{config_source}:implementation_artifacts"
|
||||
user_name: "{config_source}:user_name"
|
||||
communication_language: "{config_source}:communication_language"
|
||||
document_output_language: "{config_source}:document_output_language"
|
||||
date: system-generated
|
||||
|
||||
# Workflow components
|
||||
installed_path: "{project-root}/_bmad/bmm/workflows/qa-generate-e2e-tests"
|
||||
instructions: "{installed_path}/instructions.md"
|
||||
validation: "{installed_path}/checklist.md"
|
||||
template: false
|
||||
|
||||
# Variables and inputs
|
||||
test_dir: "{project-root}/tests" # Root test directory
|
||||
source_dir: "{project-root}" # Source code directory
|
||||
|
||||
# Output configuration
|
||||
default_output_file: "{implementation_artifacts}/tests/test-summary.md"
|
||||
|
||||
# Required tools
|
||||
required_tools:
|
||||
- read_file # Read source code and existing tests
|
||||
- write_file # Create test files
|
||||
- create_directory # Create test directories
|
||||
- list_files # Discover features
|
||||
- search_repo # Find patterns
|
||||
- glob # Find files
|
||||
|
||||
tags:
|
||||
- qa
|
||||
- automation
|
||||
- testing
|
||||
|
||||
execution_hints:
|
||||
interactive: false
|
||||
autonomous: true
|
||||
iterative: false
|
||||
Loading…
Add table
Add a link
Reference in a new issue