Three Cursor Use Cases for Bugster
Bugster provides three specialized Cursor rules to enhance your development workflow:Test Generation
Manual activation - Generate comprehensive test specifications following Bugster’s YAML structure and best practices.
Test Update
Manual activation - Update existing test specifications based on code changes and new requirements.
Quick Validation
Auto-activation - Automatically validate UI changes after modifying components or pages with a final E2E test.
| Rule | When to Use | Activation | Purpose |
|---|---|---|---|
| Test Generation | Building test suites | Manual (@bugster-generate) | Create comprehensive test specifications |
| Test Update | Maintaining tests | Manual (@bugster-update) | Update existing tests after code changes |
| Quick Validation | After UI changes | Automatic (on file save) | Validate implementation meets requirements |
Using Cursor with Bugster
Cursor rules provide persistent context about your Bugster project, ensuring consistent test generation and automatic validation that follows your standards and best practices.- Project rules are stored in your repository and shared with your team.
- User rules apply to your personal Cursor environment.
.cursor/rules directory of your project. See the Cursor Rules documentation for complete setup instructions.
Test Generation Rule
This rule provides Cursor with context to properly generate Bugster test specifications following the required YAML structure and best practices.Installation
Install the official test generation rule using the Bugster CLI:bugster-generate.mdc in your .cursor/rules/ directory.
View the official rule: Cursor Test Generation Rule
How to Use
Reference the rule in your Cursor chat to activate it:What It Does
- Generates comprehensive test specifications in proper YAML format
- Follows Bugster naming conventions and file structure
- Creates tests in
.bugster/tests/with correct hierarchy - Validates all required fields are present
- Limits generation to avoid test duplication
Test Update Rule
This rule helps you update existing test specifications when your code changes or requirements evolve.Installation
Install the official test update rule using the Bugster CLI:bugster-update.mdc in your .cursor/rules/ directory.
View the official rule: Cursor Test Update Rule
How to Use
Reference the rule in your Cursor chat to activate it:What It Does
- Updates existing test specifications to match code changes
- Maintains test structure while adapting to new requirements
- Preserves test intent while updating implementation details
- Ensures tests stay synchronized with your codebase
- Follows the same YAML standards as test generation
Quick Test Rule
This rule automatically validates your UI changes by running a comprehensive E2E test after you modify components or pages. It helps ensure your implementation meets user requirements.File name suggestion:
bugster-quick-test.mdc.mdc file in the .cursor/rules directory of your project:
Combining All Rules
For optimal workflow, use all three rules together:1
Setup
Install the official rules and add the quick test rule to your Then add
.cursor/rules directory:bugster-quick-test.mdc (see Quick Test Rule section above) for auto-validation.2
Development Flow
- Build your feature as requested
- Quick Test rule automatically validates the implementation
- Use Test Generation rule to create comprehensive test suites
- Use Test Update rule when refactoring or updating features
3
Team Consistency
All three rules ensure team members follow the same Bugster standards and validation processes.
