Skip to content

Commit ffb4fb4

Browse files
committed
[Tests] Split to independent executables
1 parent 8a01721 commit ffb4fb4

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

Package.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ let package = Package(
1414
swiftSettings: [
1515
.unsafeFlags(["-Xfrontend", "-enable-experimental-concurrency"])
1616
]),
17-
.testTarget(
18-
name: "PostgreSQLTests",
17+
.executableTarget(
18+
name: "Tests/PostgreSQL",
1919
dependencies: ["Test", "PostgreSQL"],
20+
path: "Tests/PostgreSQL",
2021
swiftSettings: [
2122
.unsafeFlags(["-Xfrontend", "-enable-experimental-concurrency"])
2223
])
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import Test
22
@testable import PostgreSQL
33

4-
class PostgreSQLTests: TestCase {
4+
test.case("") {
55

66
}
7+
8+
test.run()

run_tests

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
swift build
6+
7+
export DYLD_LIBRARY_PATH=/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/lib/swift/macosx
8+
9+
.build/debug/Tests/PostgreSQL

0 commit comments

Comments
 (0)