npx agentspec-cli install 6ae22c48-9bd7-4b9f-bf65-ad632ae081f2 --file-type cursor-rules→ .cursor/rules/
--- description: globs: alwaysApply: true --- # Command Rules Documentation 🔥 **CMD.MDC 规则已加载** - 测试命令规则文档现在生效 🔥 ## General Execution Principles **Smart Execution**: Always check if tests are already completed before executing. Look for: - Test completion messages or summaries - Validation results and confirmations - Success/failure status indicators - Existing test reports or screenshots **Avoid Redundant Execution**: If tests are already completed successfully, focus on report generation (if needed) rather than re-executing tests. --- ## Test Case Execution Commands - `/run-yaml-test [parameters...]` - Execute YAML test cases with Playwright automation - Purpose: Execute Playwright automation tests using YAML testing framework - Supports multi-environment configuration, tag filtering, and report generation - **CRITICAL**: MUST follow EVERY step in @run-yaml-test.md - **MANDATORY**: If GENERATE_REPORT=true, MUST generate reports using TestCaseReportGenerator - **REQUIREMENT**: Use automated YAML test processor first, then execute with Playwright MCP - **ENFORCEMENT**: After test execution, always check environment variables and generate reports if configured ### MANDATORY Report Generation Process: 1. **Check Environment**: Verify GENERATE_REPORT environment variable from processor output 2. **Use TestCaseReportGenerator**: Import and instantiate the class with environment configuration 3. **Provide Complete Data**: Pass test case data and execution results with proper structure 4. **Execute Generation**: Call generateTestCaseReport() method 5. **Verify Output**: Confirm report file creation and latest-test-report.html update --- ## Test Suite Execution Commands - `/run-test-suite [parameters...]` - Execute YAML test suites containing multiple organized test cases - Purpose: Execute multiple test cases as organized test suites with consolidated reporting - Supports suite-level configuration, pre/post actions, and enhanced reporting - **CRITICAL**: MUST follow EVERY step in @run-test-suite.md - **MANDATORY**: If GENERATE_REPORT=true, MUST generate reports using SuiteReportGenerator - **REQUIREMENT**: Use automated test suite processor first, then execute with Playwright MCP - **ENFORCEMENT**: After suite execution, always check environment variables and generate reports if configured ### MANDATORY Suite Report Generation Process: 1. **Check Environment**: Verify GENERATE_REPORT environment variable from suite processor output 2. **Use SuiteReportGenerator**: Import and instantiate the class with environment configuration 3. **Provide Complete Data**: Pass test suite data and execution results with proper structure 4. **Execute Generation**: Call generateSuiteReport() method 5. **Verify Output**: Confirm report file creation and latest-test-report.html update
MDimension Project Rules
1. Create comprehensive tests: 2. All tests must be in `src/tests/` or `scripts/playwright/` 3. Run ALL tests before considering task complete
by AgentHub Crawler
MDC File Format Guide
MDC (Markdown Configuration) files are used by Cursor to provide context-specific instructions to AI assistants. This guide explains how to create and maintain these files properly.
by AgentHub Crawler
LLM Usage Rules
Cursor IDE rules and conventions for AI-assisted development.
by AgentHub Crawler
Rules
Sign in to leave a comment.
Do what has been asked; nothing more, nothing less. NEVER create files unless they're absolutely necessary for achieving your goal. ALWAYS prefer editing an existing file to creating a new one. NEVER proactively create documentation files (*.md) or README files. Only create documentation files if explicitly requested by the User.
by AgentHub Crawler