Skip to content

Commit 57319ec

Browse files
fix(test): ignore all permission tests on CI (require camera hardware)
1 parent c63bbf3 commit 57319ec

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/commands_permissions_test.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ mod commands_permissions_tests {
66
use crabcamera::permissions::PermissionStatus;
77

88
#[tokio::test]
9+
#[ignore = "Requires camera hardware and OS permissions - run manually"]
910
async fn test_request_camera_permission_success() {
1011
let result = request_camera_permission().await;
1112
assert!(result.is_ok());
@@ -20,6 +21,7 @@ mod commands_permissions_tests {
2021
}
2122

2223
#[tokio::test]
24+
#[ignore = "Requires camera hardware and OS permissions - run manually"]
2325
async fn test_check_camera_permission_status_granted() {
2426
let result = check_camera_permission_status().await;
2527
assert!(result.is_ok());
@@ -34,6 +36,7 @@ mod commands_permissions_tests {
3436
}
3537

3638
#[tokio::test]
39+
#[ignore = "Requires camera hardware and OS permissions - run manually"]
3740
async fn test_permission_functions_are_consistent() {
3841
// Test multiple calls to ensure consistent behavior
3942
let first_request = request_camera_permission().await.unwrap().status;
@@ -49,6 +52,7 @@ mod commands_permissions_tests {
4952
}
5053

5154
#[tokio::test]
55+
#[ignore = "Requires camera hardware and OS permissions - run manually"]
5256
async fn test_concurrent_permission_requests() {
5357
let mut handles = vec![];
5458

@@ -66,6 +70,7 @@ mod commands_permissions_tests {
6670
}
6771

6872
#[tokio::test]
73+
#[ignore = "Requires camera hardware and OS permissions - run manually"]
6974
async fn test_concurrent_permission_status_checks() {
7075
let mut handles = vec![];
7176

0 commit comments

Comments
 (0)