-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
POC: Featurevisor Swift Test Runner (#65)
* Add new executable target * Add support for setting up bucket value based on "at" + tweaks with variable values mapping * Be more elastic and run tests against Apple env like ios and tvos * Add "commands" dependency to run script command to generate datafiles via featurevisor cli * Update README with information on how test runner can be used
- Loading branch information
Showing
17 changed files
with
986 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,70 @@ | ||
// swift-tools-version:5.5 | ||
// swift-tools-version:5.7 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "FeaturevisorSDK", | ||
products: [ | ||
// Products define the executables and libraries produced by a package, and make them visible to other packages. | ||
.library( | ||
name: "FeaturevisorSDK", | ||
targets: ["FeaturevisorSDK"] | ||
), | ||
.library( | ||
name: "FeaturevisorTypes", | ||
targets: ["FeaturevisorTypes"] | ||
), | ||
], | ||
dependencies: [ | ||
// Dependencies declare other packages that this package depends on. | ||
// .package(url: /* package url */, from: "1.0.0"), | ||
.package(url: "https://github.com/daisuke-t-jp/MurmurHash-Swift.git", from: "1.1.1"), | ||
], | ||
targets: [ | ||
// Targets are the basic building blocks of a package. A target can define a module or a test suite. | ||
// Targets can depend on other targets in this package, and on products in packages which this package depends on. | ||
.target( | ||
name: "FeaturevisorTypes", | ||
dependencies: [] | ||
), | ||
.target( | ||
name: "FeaturevisorSDK", | ||
dependencies: [ | ||
"FeaturevisorTypes", | ||
"MurmurHash-Swift" | ||
] | ||
), | ||
.testTarget( | ||
name: "FeaturevisorSDKTests", | ||
dependencies: [ | ||
"FeaturevisorSDK" | ||
] | ||
), | ||
.testTarget( | ||
name: "FeaturevisorTypesTests", | ||
dependencies: [ | ||
"FeaturevisorTypes" | ||
], | ||
resources: [ | ||
.process("JSONs") | ||
]), | ||
] | ||
name: "FeaturevisorSDK", | ||
products: [ | ||
// Products define the executables and libraries produced by a package, and make them visible to other packages. | ||
.library( | ||
name: "FeaturevisorSDK", | ||
targets: ["FeaturevisorSDK"] | ||
), | ||
.library( | ||
name: "FeaturevisorTypes", | ||
targets: ["FeaturevisorTypes"] | ||
), | ||
.executable( | ||
name: "FeaturevisorSwiftTestRunner", | ||
targets: ["FeaturevisorTestRunner"] | ||
), | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/daisuke-t-jp/MurmurHash-Swift.git", from: "1.1.1"), | ||
.package(url: "https://github.com/JohnSundell/Files", from: "4.0.0"), | ||
.package(url: "https://github.com/jpsim/Yams.git", from: "5.0.6"), | ||
.package(url: "https://github.com/qiuzhifei/swift-commands", from: "0.6.0"), | ||
], | ||
targets: [ | ||
// Targets are the basic building blocks of a package. A target can define a module or a test suite. | ||
// Targets can depend on other targets in this package, and on products in packages which this package depends on. | ||
.target( | ||
name: "FeaturevisorTypes", | ||
dependencies: [] | ||
), | ||
.target( | ||
name: "FeaturevisorSDK", | ||
dependencies: [ | ||
"FeaturevisorTypes", | ||
"MurmurHash-Swift", | ||
] | ||
), | ||
.executableTarget( | ||
name: "FeaturevisorTestRunner", | ||
dependencies: [ | ||
"FeaturevisorSDK", | ||
"FeaturevisorTypes", | ||
"Files", | ||
"Yams", | ||
.product(name: "Commands", package: "swift-commands"), | ||
], | ||
path: "Sources/FeaturevisorTestRunner" | ||
), | ||
.testTarget( | ||
name: "FeaturevisorSDKTests", | ||
dependencies: [ | ||
"FeaturevisorSDK" | ||
] | ||
), | ||
.testTarget( | ||
name: "FeaturevisorTypesTests", | ||
dependencies: [ | ||
"FeaturevisorTypes" | ||
], | ||
resources: [ | ||
.process("JSONs") | ||
] | ||
), | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.