CLI Commands
Test Maintenance
Keep your tests synchronized with code changes using bugster update
Ensure you have generated initial tests before using the update command.
Command Usage
bugster update
Update your test specifications based on the latest changes in your codebase.
Options:
--update-only
- Only update existing test specifications, skip suggestions and deletions--suggest-only
- Only suggest new test specifications, skip updates and deletions--delete-only
- Only delete obsolete test specifications, skip updates and suggestions--show-logs
- Show detailed logs during the update process
Examples
How It Works
1
Detect Changes
Compares current code against the cached state from the last analysis.
2
Analyze Impact
Determines how code changes affect existing tests and identifies new functionality.
3
Update Tests
Modifies existing test specifications and suggests new ones as needed.
4
Clean Up
Removes test specifications that are no longer relevant.
Update Examples
Modified Test
Before:
After: