Test Suites
Test suites help you organize, manage, and execute collections of related E2E tests efficiently.
What Are Test Suites
Test suites are organized collections of related E2E tests that can be executed together. They allow you to:
- Group related tests by feature, workflow, or test type
- Run multiple tests with a single action
- Track aggregate metrics across test collections
- Integrate with CI/CD for automated testing on commits
Creating a Test Suite
Steps to Create
- Navigate to your project in DebuggAI
- Select Test Suites from the sidebar
- Click Create Suite
- Fill in the suite details:
- Name: A descriptive name (e.g., "Checkout Flow Tests")
- Description: Purpose and scope of the suite
- Category: Feature area or test type
- Click Save to create the suite
Adding Tests to a Suite
Once created, add tests to your suite:
- Open the suite detail page
- Click Add Tests
- Select tests from your existing E2E tests
- Confirm the selection
Tests can belong to multiple suites, allowing flexible organization.
Organizing Tests
Group by Feature
Organize tests around product features for focused testing:
| Suite Name | Tests Included |
|---|---|
| Authentication | Login, logout, password reset, MFA |
| User Profile | Profile edit, avatar upload, settings |
| Payments | Card addition, checkout, refunds |
Group by Test Type
Categorize by testing purpose:
- Smoke Tests: Quick validation of core functionality
- Regression Tests: Comprehensive coverage for releases
- Happy Path Tests: Standard user flows without edge cases
- Edge Case Tests: Boundary conditions and error handling
Using Tags
Apply tags for cross-cutting concerns:
critical- Tests that must pass before deploymentslow- Tests with longer execution timesflaky- Tests requiring stability improvementsmobile- Mobile-specific test scenarios
Running Suites
Manual Execution
- Navigate to the suite
- Click Run Suite
- Select execution options:
- Environment (staging, production)
- Browser configuration
- Monitor progress in real-time
Parallel Execution
Suites run tests in parallel based on your plan limits:
| Plan | Parallel Tests |
|---|---|
| Free | 1 |
| Pro | 3 |
| Enterprise | 10+ |
Parallel execution significantly reduces total suite runtime.
Viewing Results
After execution:
- Summary view: Overall pass/fail counts
- Test details: Individual test results with screenshots
- Timeline: Execution order and duration
- Logs: Detailed execution logs for debugging
Commit-Based Suites
Trigger on Commits
Configure suites to run automatically when code changes:
- Open suite settings
- Enable Commit Triggers
- Select trigger conditions:
- All commits to specific branches
- Commits matching patterns
- Pull request events
CI/CD Integration
Integrate with your CI/CD pipeline:
# Example GitHub Actions workflow
- name: Run DebuggAI Suite
run: |
curl -X POST https://api.debugg.ai/v1/suites/{suite_id}/run \
-H "Authorization: Bearer ${{ secrets.DEBUGGAI_TOKEN }}" \
-d '{"commit": "${{ github.sha }}"}'
Blocking Deployments
Configure suites as deployment gates:
- Set suite as required in project settings
- Failed suites block merge/deploy actions
- Receive notifications on suite completion
Suite Statistics
Pass Rate Tracking
Monitor suite health over time:
- Current pass rate: Percentage of passing tests
- Historical trends: Pass rate changes over time
- Per-test breakdown: Identify consistently failing tests
Execution Time Trends
Track performance metrics:
- Average duration: Suite execution time
- Trend analysis: Identify slowdowns
- Per-test timing: Find bottlenecks
Flakiness Detection
DebuggAI automatically identifies flaky tests:
- Tests that pass/fail inconsistently
- Flakiness score based on recent runs
- Recommendations for stabilization
Example: E-Commerce Test Organization
Here is an example of organizing test suites for an e-commerce application:
Suite Structure
E-Commerce Test Suites
|
|-- Smoke Tests (run on every commit)
| |-- Homepage loads
| |-- User can log in
| |-- Product search works
| |-- Cart adds item
|
|-- Authentication Suite
| |-- User registration
| |-- Login with email
| |-- Social login (Google, Facebook)
| |-- Password reset flow
| |-- Session timeout handling
|
|-- Product Catalog Suite
| |-- Category navigation
| |-- Product search
| |-- Filter and sort
| |-- Product detail view
| |-- Image gallery
|
|-- Checkout Suite
| |-- Add to cart
| |-- Update quantities
| |-- Apply discount code
| |-- Shipping selection
| |-- Payment processing
| |-- Order confirmation
|
|-- Regression Suite (run before releases)
| |-- All tests from above suites
| |-- Edge cases
| |-- Error handling scenarios
Execution Strategy
| Trigger | Suite | Purpose |
|---|---|---|
| Every commit | Smoke Tests | Quick validation |
| PR to main | Feature suites | Targeted testing |
| Pre-release | Regression Suite | Full coverage |
| Nightly | All suites | Comprehensive check |
This organization ensures fast feedback on commits while maintaining thorough coverage for releases.
Best Practices
- Keep smoke suites small: Under 10 tests for fast feedback
- Review flaky tests weekly: Stabilize or remove unreliable tests
- Update suites with features: Add tests as new features ship
- Monitor execution times: Investigate sudden slowdowns
- Use descriptive names: Make suite purpose clear at a glance