From 744b52667f443cab1a98b86d22a560a3ffab4ad5 Mon Sep 17 00:00:00 2001 From: Prax Lannister Date: Wed, 8 Jul 2026 01:15:45 +0530 Subject: [PATCH] test: wire repo-root DayflowTests into the compiled DayflowTests target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DayflowTests/ChatCLIProcessRunnerTests.swift and DailyRecapGeneratorTests.swift lived at the repo root, outside the Xcode project's DayflowTests target (which only wires Dayflow/DayflowTests/ via a PBXFileSystemSynchronizedRootGroup). They were never compiled or run. Moving them in immediately caught a live compile bug — proof they were never running: testMakeLocalPromptPlacesLanguageSectionBeforeOutputFormat() called `try XCTUnwrap` but was missing `throws` on its signature. Fixed with one line. All 11 tests (6 pre-existing + 5 newly-wired) now pass: xcodebuild -scheme Dayflow -destination 'platform=macOS' test ** TEST SUCCEEDED ** --- .../DayflowTests}/ChatCLIProcessRunnerTests.swift | 0 .../DayflowTests}/DailyRecapGeneratorTests.swift | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename {DayflowTests => Dayflow/DayflowTests}/ChatCLIProcessRunnerTests.swift (100%) rename {DayflowTests => Dayflow/DayflowTests}/DailyRecapGeneratorTests.swift (99%) diff --git a/DayflowTests/ChatCLIProcessRunnerTests.swift b/Dayflow/DayflowTests/ChatCLIProcessRunnerTests.swift similarity index 100% rename from DayflowTests/ChatCLIProcessRunnerTests.swift rename to Dayflow/DayflowTests/ChatCLIProcessRunnerTests.swift diff --git a/DayflowTests/DailyRecapGeneratorTests.swift b/Dayflow/DayflowTests/DailyRecapGeneratorTests.swift similarity index 99% rename from DayflowTests/DailyRecapGeneratorTests.swift rename to Dayflow/DayflowTests/DailyRecapGeneratorTests.swift index 1645537c1..daff295ef 100644 --- a/DayflowTests/DailyRecapGeneratorTests.swift +++ b/Dayflow/DayflowTests/DailyRecapGeneratorTests.swift @@ -8,7 +8,7 @@ final class DailyRecapGeneratorTests: XCTestCase { LLMOutputLanguagePreferences.override = "" } - func testMakeLocalPromptPlacesLanguageSectionBeforeOutputFormat() { + func testMakeLocalPromptPlacesLanguageSectionBeforeOutputFormat() throws { LLMOutputLanguagePreferences.override = "Japanese" let prompt = DailyRecapGenerator.makeLocalPrompt(