From 57af5b9dc230a7fcf28019c93bc063ec9d3630e9 Mon Sep 17 00:00:00 2001 From: James Brunton Date: Thu, 28 May 2026 12:05:56 +0100 Subject: [PATCH] Fix Tauri testing (#6462) # Description of Changes #6402 introduced a Rust test `refresh_token_fallback.rs`, but it wasn't moved properly after the restructure of the `frontend/` folder in #6404. This PR moves the file to the right place, and also hooks up Task and CI rules for `cargo test` since nothing was actually running the test in the first place. --- .github/workflows/tauri-build.yml | 3 +++ .taskfiles/desktop.yml | 7 +++++++ .../{ => editor}/src-tauri/tests/refresh_token_fallback.rs | 0 3 files changed, 10 insertions(+) rename frontend/{ => editor}/src-tauri/tests/refresh_token_fallback.rs (100%) diff --git a/.github/workflows/tauri-build.yml b/.github/workflows/tauri-build.yml index ee0b28c88..dda8d6538 100644 --- a/.github/workflows/tauri-build.yml +++ b/.github/workflows/tauri-build.yml @@ -157,6 +157,9 @@ jobs: JPDFIUM_PLATFORMS: ${{ matrix.jpdfium_platforms }} run: task desktop:prepare + - name: Run Tauri/Cargo tests + run: task desktop:test + # DigiCert KeyLocker Setup (Cloud HSM) - name: Setup DigiCert KeyLocker id: digicert-setup diff --git a/.taskfiles/desktop.yml b/.taskfiles/desktop.yml index 46a06abd8..ebf7f5400 100644 --- a/.taskfiles/desktop.yml +++ b/.taskfiles/desktop.yml @@ -78,6 +78,13 @@ tasks: cmds: - npx tauri build --bundles appimage + test: + desc: "Run Tauri/Cargo tests" + deps: [prepare] + dir: editor/src-tauri + cmds: + - cargo test + clean: desc: "Clean Tauri/Cargo build artifacts" dir: editor diff --git a/frontend/src-tauri/tests/refresh_token_fallback.rs b/frontend/editor/src-tauri/tests/refresh_token_fallback.rs similarity index 100% rename from frontend/src-tauri/tests/refresh_token_fallback.rs rename to frontend/editor/src-tauri/tests/refresh_token_fallback.rs