Test management with CLI
While the Keystone CLI primarily handles local test execution and recording tunnels, test management is primarily done through Keystone Studio. However, the CLI provides useful capabilities for working with tests in your development workflow.Local test execution
Running individual tests
Development testing workflow
Test file provisioning
Working with test files
The CLI can provision test files for local development:File structure
Environment-specific testing
Testing against different environments
Environment configuration
Test organization strategies
Project structure integration
Organize tests to match your application structure:Branch-based testing
Debugging and inspection
Local test debugging
Test failure analysis
When tests fail locally:Performance monitoring
Local performance testing
Optimization insights
Integration with development tools
Git hooks integration
CI/CD preparation
Test data management
Local test data
Data isolation
Troubleshooting test issues
Common test problems
Element not found:Debug strategies
Best practices
Development workflow
- Record locally: Use CLI tunnel to record against localhost
- Test locally: Debug and refine tests with full visibility
- Validate remotely: Run tests against staging/production
- Integrate CI: Automate test execution in pipeline
Test maintenance
- Regular updates: Keep tests current with application changes
- Performance monitoring: Track test execution time and reliability
- Error analysis: Investigate and fix failing tests promptly
- Documentation: Maintain clear test descriptions and purposes
Team collaboration
- Shared environments: Use consistent staging environments
- Test organization: Structure tests logically for team use
- Code integration: Include test development in code review process
- Knowledge sharing: Document test patterns and best practices

