@@ -7,25 +7,38 @@ let package = Package(
7
7
name: " e2e " ,
8
8
platforms: [ . iOS( . v15) , . macOS( . v12) ] ,
9
9
products: [
10
+ . library(
11
+ name: " TestFramework " ,
12
+ targets: [ " TestFramework " ] ) ,
10
13
] ,
11
14
dependencies: [
12
- . package ( url: " https://github.com/apple/swift-openapi-generator " , . upToNextMinor( from: " 1.2.1 " ) ) ,
13
- . package ( url: " https://github.com/apple/swift-openapi-runtime " , . upToNextMinor( from: " 1.3.2 " ) ) ,
14
- . package ( url: " https://github.com/apple/swift-openapi-urlsession " , . upToNextMinor( from: " 1.0.1 " ) ) ,
15
- . package ( url: " https://github.com/nschum/SwiftHamcrest " , . upToNextMajor ( from : " 2.2.1 " ) ) ,
16
- . package ( path: " ../ " )
15
+ . package ( url: " https://github.com/apple/swift-openapi-generator " , . upToNextMinor( from: " 1.7.0 " ) ) ,
16
+ . package ( url: " https://github.com/apple/swift-openapi-runtime " , . upToNextMinor( from: " 1.8.0 " ) ) ,
17
+ . package ( url: " https://github.com/apple/swift-openapi-urlsession " , . upToNextMinor( from: " 1.0.2 " ) ) ,
18
+ . package ( url: " https://github.com/nschum/SwiftHamcrest " , exact : " 2.2.1 " ) ,
19
+ . package ( name : " edge-agent " , path: " ../ " )
17
20
] ,
18
21
targets: [
22
+ . target(
23
+ name: " TestFramework " ,
24
+ dependencies: [
25
+ . product( name: " SwiftHamcrest " , package : " SwiftHamcrest " )
26
+ ] ,
27
+ path: " TestFramework " ,
28
+ resources: [
29
+ . copy( " Resources " )
30
+ ]
31
+ ) ,
19
32
. testTarget(
20
- name: " e2e " ,
33
+ name: " e2e-tests " ,
21
34
dependencies: [
22
- . product( name: " EdgeAgent " , package : " atala-prism-wallet-sdk-swift " ) ,
23
- . product( name: " Domain " , package : " atala-prism-wallet-sdk-swift " ) ,
35
+ . target( name: " TestFramework " ) ,
36
+ . product( name: " EdgeAgent " , package : " edge-agent " ) ,
37
+ . product( name: " Domain " , package : " edge-agent " ) ,
24
38
. product( name: " OpenAPIRuntime " , package : " swift-openapi-runtime " ) ,
25
39
. product( name: " OpenAPIURLSession " , package : " swift-openapi-urlsession " ) ,
26
- . product( name: " SwiftHamcrest " , package : " SwiftHamcrest " )
27
40
] ,
28
- path: " e2eTests " ,
41
+ path: " Tests " ,
29
42
resources: [
30
43
. copy( " Resources " )
31
44
] ,
0 commit comments