Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Implement Rust testing framework #187

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vishwamartur
Copy link

@vishwamartur vishwamartur commented Nov 27, 2024

Related to #184

Implement a scalable testing system for Rust functions in the Cap desktop application.

  • Add test cases: Create a new file apps/desktop/src-tauri/tests/desktop_tests.rs with test cases for start_recording, stop_recording, copy_file_to_path, copy_screenshot_to_clipboard, and export_video.
  • Update package.json: Add a new command test:desktop in apps/desktop/package.json to run the Rust tests using cargo test --manifest-path src-tauri/Cargo.toml.

CMD:cargo add --dev tokio --dev anyhow --dev tempfile --dev assert_cmd --dev predicates

/claim #184

Related to CapSoftware#184

Implement a scalable testing system for Rust functions in the Cap desktop application.

* **Add test cases**: Create a new file `apps/desktop/src-tauri/tests/desktop_tests.rs` with test cases for `start_recording`, `stop_recording`, `copy_file_to_path`, `copy_screenshot_to_clipboard`, and `export_video`.
* **Update package.json**: Add a new command `test:desktop` in `apps/desktop/package.json` to run the Rust tests using `cargo test --manifest-path src-tauri/Cargo.toml`.
Copy link

vercel bot commented Nov 27, 2024

@vishwamartur is attempting to deploy a commit to the Cap Software Inc Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

algora-pbc bot commented Nov 27, 2024

💵 To receive payouts, # on Algora, link your Github account and connect with Stripe.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant