/claim #184 /closes #184

DESCRIPTION: This pull request introduces a testing framework for the Rust components of the Cap desktop application, addressing issue #184.

Key Changes: Testing Infrastructure: A new testing setup has been integrated into the src-tauri directory. This uses Rust’s built-in testing capabilities. Initial Tests: Implemented initial tests for the core recording functionalities: start_recording stop_recording Test Command: Added a new script test:desktop to package.json, which can be run with pnpm test:desktop to execute the Rust tests. Scalability: The testing structure is organized to be easily scalable for future tests covering more functions like copy_to_clipboard, save_file, and render_file. This provides a solid foundation for ensuring the quality and correctness of the Rust backend of the desktop application.

Summary by CodeRabbit

  • Tests

    • Added a desktop test suite with helpers for reliable async event testing.
    • Added end-to-end tests: recording workflow, clipboard screenshot copying, and project export.
    • Enabled running desktop (Tauri) tests via a single npm command.
  • Chores

    • Added development test dependencies and a test-related feature flag to support desktop testing.
    • No user-facing functional changes.

Claim

Total prize pool $201
Total paid $1
Status Approved
Submitted September 11, 2025
Last updated September 11, 2025

Contributors

EX

Excellencedev

@Excellencedev

100%

Sponsors

CA

Cap

@CapSoftware

$200 pending
RI

Rishi Mondal

@MAVRICK-1

$1 paid