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.

bugster update [OPTIONS]

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

# Full update: modify, suggest, and delete specs
bugster update

# Only update existing test specifications
bugster update --update-only

# Only suggest new tests with logging
bugster update --suggest-only --show-logs

# Only remove obsolete specifications
bugster update --delete-only

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:

- name: User Login
  steps:
    - Navigate to /login
    - Click "Sign In" button

After:

- name: User Login
  steps:
    - Navigate to /auth/login  # Updated route
    - Click "Login" button     # Updated button text

New Test Suggestion

- name: Password Reset Flow
  task: Verify users can reset their password via email
  steps:
    - Navigate to /forgot-password
    - Enter email address
    - Click "Send Reset Link"

Next Steps