From 8c7fb59d4192814a2565217e1d580a81bd440eb5 Mon Sep 17 00:00:00 2001 From: Rune Olsen Date: Thu, 23 Jul 2026 13:30:45 +0200 Subject: [PATCH] Add real oAITests target; remove disconnected SPM test scaffold The old Tests/oAITests/oAITests.swift + root Package.swift/Sources/ were a swift package init stub that @testable imported a fake empty oAI module, completely disconnected from the real ~31K-line app (built only via oAI.xcodeproj). Running `swift test` there would have silently "passed" while testing nothing. oAITests is a proper Unit Testing Bundle target added via Xcode's target editor, wired into the app's scheme (TestAction references oAITests.xctest). Verified with `xcodebuild test` before and after removing the dead scaffold. First phase of the test-suite rollout plan (peaceful-baking-kurzweil). --- Package.swift | 26 -------------------------- Sources/oAI/oAI.swift | 2 -- Tests/oAITests/oAITests.swift | 6 ------ oAITests/oAITests.swift | 18 ++++++++++++++++++ 4 files changed, 18 insertions(+), 34 deletions(-) delete mode 100644 Package.swift delete mode 100644 Sources/oAI/oAI.swift delete mode 100644 Tests/oAITests/oAITests.swift create mode 100644 oAITests/oAITests.swift diff --git a/Package.swift b/Package.swift deleted file mode 100644 index 977bb97..0000000 --- a/Package.swift +++ /dev/null @@ -1,26 +0,0 @@ -// swift-tools-version: 6.2 -// The swift-tools-version declares the minimum version of Swift required to build this package. - -import PackageDescription - -let package = Package( - name: "oAI", - products: [ - // Products define the executables and libraries a package produces, making them visible to other packages. - .library( - name: "oAI", - targets: ["oAI"] - ), - ], - targets: [ - // Targets are the basic building blocks of a package, defining a module or a test suite. - // Targets can depend on other targets in this package and products from dependencies. - .target( - name: "oAI" - ), - .testTarget( - name: "oAITests", - dependencies: ["oAI"] - ), - ] -) diff --git a/Sources/oAI/oAI.swift b/Sources/oAI/oAI.swift deleted file mode 100644 index 08b22b8..0000000 --- a/Sources/oAI/oAI.swift +++ /dev/null @@ -1,2 +0,0 @@ -// The Swift Programming Language -// https://docs.swift.org/swift-book diff --git a/Tests/oAITests/oAITests.swift b/Tests/oAITests/oAITests.swift deleted file mode 100644 index f3c6191..0000000 --- a/Tests/oAITests/oAITests.swift +++ /dev/null @@ -1,6 +0,0 @@ -import Testing -@testable import oAI - -@Test func example() async throws { - // Write your test here and use APIs like `#expect(...)` to check expected conditions. -} diff --git a/oAITests/oAITests.swift b/oAITests/oAITests.swift new file mode 100644 index 0000000..c99a30f --- /dev/null +++ b/oAITests/oAITests.swift @@ -0,0 +1,18 @@ +// +// oAITests.swift +// oAITests +// +// Created by Rune Olsen on 23/07/2026. +// + +import Testing + +struct oAITests { + + @Test func example() async throws { + // Write your test here and use APIs like `#expect(...)` to check expected conditions. + // Swift Testing Documentation + // https://developer.apple.com/documentation/testing + } + +}