Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

test(desktop): isolate sentinel regression from Tauri test startup

Richie McIlroy9e2a7a8ab06e
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 87613056f..a3a9d4c31 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -319,7 +319,7 @@ jobs:
run: |
export PATH="$(cygpath "$GITHUB_WORKSPACE/target/debug"):$PATH"
cargo test --locked -p cap-desktop --target ${{ matrix.settings.target }} --bin cap-desktop logging_tests
- cargo test --locked -p cap-desktop --target ${{ matrix.settings.target }} --lib crash_sentinel::tests
+ cargo test --locked -p cap-desktop --target ${{ matrix.settings.target }} --test crash_sentinel
- name: Test Linux desktop regressions
if: ${{ runner.os == 'Linux' }}
diff --git a/apps/desktop/src-tauri/tests/crash_sentinel.rs b/apps/desktop/src-tauri/tests/crash_sentinel.rs
new file mode 100644
index 000000000..2db8770e5
--- /dev/null
+++ b/apps/desktop/src-tauri/tests/crash_sentinel.rs
@@ -0,0 +1,2 @@
+#[path = "../src/crash_sentinel.rs"]
+pub mod crash_sentinel;