Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Implement Rust testing framework #184

Open
richiemcilroy opened this issue Nov 24, 2024 · 7 comments
Open

Implement Rust testing framework #184

richiemcilroy opened this issue Nov 24, 2024 · 7 comments

Comments

@richiemcilroy
Copy link
Collaborator

Implement a testing system for Cap desktop, specifically for Rust functions.

The Rust part of the Tauri application can be found in the src-tauri folder.

Implement tests for the following functions:

  • Start recording
  • Stop recording
  • Copy to clipboard
  • Save file
  • Render file

This new testing system should be easily scaleable for more functions in the future.

We should have a specific command which can be run to launch the tests, e.g. pnpm test:desktop.

@richiemcilroy
Copy link
Collaborator Author

/bounty $200

Copy link

algora-pbc bot commented Nov 24, 2024

💎 $200 bounty • Cap

Steps to solve:

  1. Start working: Comment /attempt #184 with your implementation plan
  2. Submit work: Create a pull request including /claim #184 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to CapSoftware/Cap!

Add a bountyShare on socials

Attempt Started (GMT+0) Solution
🟢 @asr2003 Nov 24, 2024, 2:21:44 AM WIP
🟢 @vishwamartur Nov 27, 2024, 4:03:42 AM #187

@asr2003
Copy link

asr2003 commented Nov 24, 2024

/attempt #184

Algora profile Completed bounties Tech Active attempts Options
@asr2003 9 bounties from 4 projects
Scala, Rust,
Go & more
Cancel attempt

vishwamartur added a commit to vishwamartur/Cap that referenced this issue Nov 27, 2024
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`.
@vishwamartur
Copy link

vishwamartur commented Nov 27, 2024

/attempt #184

Copy link

algora-pbc bot commented Nov 27, 2024

💡 @vishwamartur submitted a pull request that claims the bounty. You can visit your bounty board to reward.

@Gmin2
Copy link

Gmin2 commented Nov 30, 2024

Is this still valid ?(as you have not reviewed previous PR)

cc @richiemcilroy

@asr2003
Copy link

asr2003 commented Nov 30, 2024

@Gmin2 The team is validating with a approach. Has been discussing same with the team and also team recently launched Cap on Product Hunt. Do check it out

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

No branches or pull requests

4 participants