بنقرة واحدة
test
Run test suites and analyze results. Trigger: test, run tests, TDD, test suite, unit test, integration test
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Run test suites and analyze results. Trigger: test, run tests, TDD, test suite, unit test, integration test
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Create a new feature using TDD and tracer bullets. Trigger: new feature, add feature, implement feature, build feature
Break features into tracer bullet stories and tasks. Trigger: decompose, break down, split feature, tracer bullet, stories, tasks, decompose feature
Deploy to staging or production with safety checks. Trigger: deploy, ship, release, push to staging, push to production
Build or update .context.md for a module. Trigger: explore module, explore, understand module, what does this module do, context file, update context
Fix a bug with root cause analysis and regression testing. Trigger: fix bug, broken, regression, error, crash, not working, failing
Run linters, formatters, and static analysis. Trigger: lint, format, standards, style check, code quality, lint setup
| name | test |
| description | Run test suites and analyze results. Trigger: test, run tests, TDD, test suite, unit test, integration test |
Tests are the specification. A passing test suite means the software works as specified. A failing test means either the specification changed or the software is broken -- both require action. Writing tests first (TDD) produces better designs because the test drives the interface before the implementation exists.
WRONG (test after): RIGHT (test first):
1. Write all the code 1. Write a failing test
2. "Now let me add some tests" 2. Write minimum code to pass
3. Tests match implementation 3. Test drives the design
4. Tests are tautological 4. Tests are specifications
/test --> make test (full suite)
/test unit --> make test-unit
/test int --> make test-int
/test integration --> make test-int
/test e2e --> make test-e2e
/test [file or pattern] --> run tests matching the pattern
/test mutation --> run mutation testing (see advanced.md)
/test property --> run property-based tests (see advanced.md)
/test flaky --> identify and manage flaky tests (see advanced.md)
Execute the appropriate command:
| Scope | Command |
|---|---|
| Full suite | make test |
| Unit only | make test-unit |
| Integration | make test-int |
| E2E | make test-e2e |
| Specific file | Language-specific runner with file/pattern argument |
Test Results:
- Total: [N]
- Passed: [N]
- Failed: [N]
- Skipped: [N]
- Duration: [N]s
For each failing test:
FAILED: test_user_login_with_expired_token
File: tests/unit/test_auth.py:45
Assert: response.status_code == 401
Expected: 401
Actual: 500
Likely cause: Token expiration check raises unhandled exception
instead of returning 401 response.
Suggested fix: Add try/except in validate_token() to catch
ExpiredTokenError and return appropriate HTTP response.
/test watch -- suggest the watch mode command for the project's test runner:
| Runner | Watch Command |
|---|---|
| pytest | pytest-watch or ptw |
| vitest | vitest --watch |
| jest | jest --watch |
| cargo test | cargo watch -x test |
advanced.md -- Property-based testing, mutation testing, contract testing, snapshot testing, flaky test management