azu test
Synopsis
azu test [files] [options]Description
Usage
Basic Testing
# Run all tests
azu test
# Run specific test file
azu test spec/models/user_spec.cr
# Run all tests in a directory
azu test spec/models/Watch Mode
Filtering Tests
Options
Option
Short
Description
Environment Variables
Variable
Description
Default
Examples
Development Workflow
Focused Testing
Pre-Commit Testing
Test File Structure
Output Format
Watch Mode Behavior
Coverage Reporting
Performance Considerations
Parallel Testing
Test Database
Best Practices
1. Use Watch Mode During Development
2. Keep Tests Fast
3. Organize Tests Logically
4. Use Filters for Focused Development
5. Run Full Suite Before Commits
6. Test in Temporary Directories
Troubleshooting
Tests Not Running
Watch Mode Not Detecting Changes
Parallel Tests Failing
Database Connection Errors
Integration with CI/CD
GitHub Actions Example
GitLab CI Example
Aliases
Related Commands
See Also
Last updated