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).
This commit is contained in:
2026-07-23 13:30:45 +02:00
parent 4fe3bde7e9
commit 8c7fb59d41
4 changed files with 18 additions and 34 deletions
-26
View File
@@ -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"]
),
]
)
-2
View File
@@ -1,2 +0,0 @@
// The Swift Programming Language
// https://docs.swift.org/swift-book
-6
View File
@@ -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.
}
+18
View File
@@ -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
}
}