Skip to content

Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more

test: enable export collision probes on disposable macOS CI

Alex Efremovfc29cac6c3f0
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 3e84dc64..50526312 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -109,6 +109,7 @@ jobs:
run: |
set -o pipefail
mkdir -p build/test-results
+ TEST_RUNNER_FLUID_EXPORT_TEST_SANDBOX_TEMP="$(getconf DARWIN_USER_TEMP_DIR)" \
xcodebuild test \
-project Fluid.xcodeproj \
-scheme Fluid \
diff --git a/Tests/FluidDictationIntegrationTests/FileExportTests.swift b/Tests/FluidDictationIntegrationTests/FileExportTests.swift
index cb3a68a9..55e0b72b 100644
--- a/Tests/FluidDictationIntegrationTests/FileExportTests.swift
+++ b/Tests/FluidDictationIntegrationTests/FileExportTests.swift
@@ -8,10 +8,9 @@ final class FileExportTests: XCTestCase {
let directory = FileManager.default.temporaryDirectory.resolvingSymlinksInPath().standardizedFileURL
let configured = ProcessInfo.processInfo.environment["FLUID_EXPORT_TEST_SANDBOX_TEMP"]
guard let configured,
- directory.path == URL(fileURLWithPath: configured).resolvingSymlinksInPath().standardizedFileURL.path,
- directory.path.contains("fluid-export-tests-")
+ directory.path == URL(fileURLWithPath: configured).resolvingSymlinksInPath().standardizedFileURL.path
else {
- throw XCTSkip("Use an isolated test host with a Foundation temporary directory matching FLUID_EXPORT_TEST_SANDBOX_TEMP (fluid-export-tests-*)")
+ throw XCTSkip("Use a disposable test account or runner and set FLUID_EXPORT_TEST_SANDBOX_TEMP to its Foundation temporary directory")
}
return directory
}