Skip to content

Conversation

@limbonaut
Copy link
Collaborator

@limbonaut limbonaut commented Nov 12, 2025

This PR introduces a command-line interface system that enables execution of SentrySDK operations for integration testing purposes. The system is extensible, with new commands can be added easily in the future.

Key Additions

CLI Command System

  • CLI parser for COMMAND [ARGS...] format -- with automatic arguments parsing and help generation
  • Android adapter for intent-to-CLI argument conversion
  • Integration into the main application flow

Available Commands

  • crash-capture - Generate controlled crash for testing
  • crash-send - Process and send crash report from previous session
  • message-capture - Capture test message with optional severity level
  • runtime-error-capture - Trigger runtime error in Godot with stack trace validation
  • run-tests - Execute unit test suites
  • help - Display command usage

Usage

godot --headless --path ./project -- COMMAND [ARGS...]

Examples:

godot --headless --path ./project -- message-capture "Test message" "error"
godot --headless --path ./project -- crash-capture
godot --headless --path ./project -- run-tests "res://test/suites/"

@limbonaut limbonaut changed the title chore: Project CLI commands chore: Add CLI commands to project Nov 12, 2025
@limbonaut limbonaut marked this pull request as ready for review November 13, 2025 09:39
@limbonaut limbonaut changed the title chore: Add CLI commands to project test: Add CLI commands to project Nov 19, 2025
@limbonaut limbonaut requested a review from mujacica November 19, 2025 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants