Agent skill
test-baselhussain-ai-keto-meal-plan-ge
Run comprehensive test suite (unit, integration, E2E) with coverage reporting
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/test-baselhussain-ai-keto-meal-plan-ge
SKILL.md
User Input
$ARGUMENTS
Test type options: unit, integration, e2e, security, all (default: all)
Task
Run the test suite for the keto meal plan project and generate a comprehensive report.
Steps
-
Parse Arguments:
- If
$ARGUMENTSis empty or "all": Run all tests - If
$ARGUMENTSis "unit": Run only unit tests - If
$ARGUMENTSis "integration": Run only integration tests - If
$ARGUMENTSis "e2e": Run only E2E tests - If
$ARGUMENTSis "security": Run only security tests
- If
-
Navigate to Backend Directory:
bashcd backend -
Run Tests Based on Type:
For Unit Tests:
bashpytest tests/unit/ -v --cov=src/lib --cov=src/services --cov-report=term --cov-report=html:coverage_htmlFor Integration Tests:
bashpytest tests/integration/ -vFor E2E Tests:
bashpytest tests/e2e/ -vFor Security Tests:
bashpytest tests/security/ -vFor All Tests:
bashpytest tests/ -v --cov=src --cov-report=term --cov-report=html:coverage_html -
Generate Test Report:
- Capture test results (passed/failed/skipped counts)
- Show coverage percentage for unit tests
- List any failing tests with error messages
- Show test execution time
-
Output Summary:
✅ Test Results Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Test Type: [unit/integration/e2e/all] Passed: XX tests Failed: XX tests Skipped: XX tests Coverage: XX% (unit tests only) [If failures exist, list them here] HTML Coverage Report: backend/coverage_html/index.html -
Recommendations:
- If coverage <80%: "⚠️ Coverage below 80% target. Add tests for uncovered code."
- If failures exist: "❌ Fix failing tests before proceeding."
- If all pass: "✅ All tests passing! Safe to proceed."
Example Usage
/test # Run all tests
/test unit # Run only unit tests
/test integration # Run only integration tests
/test e2e # Run E2E tests
Exit Criteria
- Test execution completes successfully
- Test report generated and displayed
- Coverage report available at
backend/coverage_html/index.html(for unit tests)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?