File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7070 env :
7171 VALIDATOR_SUBSPEC : SQLCipher
7272 run : ./run-tests.sh
73+ - name : " Run tests (tuist)"
74+ run : |
75+ brew install tuist
76+ cd Tests/Tuist/SQLite-Test
77+ tuist install
78+ tuist test
7379 build-linux :
7480 runs-on : ubuntu-latest
7581 steps :
Original file line number Diff line number Diff line change 3030Packages /
3131.swiftpm /
3232Package.resolved
33+ Derived /
Original file line number Diff line number Diff line change @@ -17,10 +17,9 @@ let project = Project(
1717 ]
1818 ) ,
1919 buildableFolders: [
20- " SQLite-Test/Sources " ,
21- " SQLite-Test/Resources " ,
20+ " SQLite-Test/Sources "
2221 ] ,
23- dependencies: [ ]
22+ dependencies: [ . external ( name : " SQLite " ) ]
2423 ) ,
2524 . target(
2625 name: " SQLite-TestTests " ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11import SwiftUI
2+ import SQLite
3+
4+ let connection = try ! SQLite . Connection ( . inMemory)
25
36@main
47struct SQLiteTestApp : App {
58 var body : some Scene {
69 WindowGroup {
7- ContentView ( )
10+ Text ( " version: \( connection . sqliteVersion . description ) " ) . padding ( )
811 }
912 }
1013}
Original file line number Diff line number Diff line change 11import Testing
2- @ testable import SQLiteTest
2+ import SQLite
33
44struct SQLiteTestTests {
55
6- @Test func example( ) async throws {
7- // Write your test here and use APIs like `#expect(...)` to check expected conditions.
8- }
6+ @Test func test_connection( ) async throws {
7+ let connection = try SQLite . Connection ( . inMemory)
8+ let version = connection. sqliteVersion
9+
10+ #expect( version. major == 3 )
911
12+ }
1013}
You can’t perform that action at this time.
0 commit comments