forked from XCTestHTMLReport/XCTestHTMLReport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
45 lines (43 loc) · 1.65 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// swift-tools-version:5.5
import PackageDescription
let package = Package(
name: "XCTestHTMLReport",
defaultLocalization: "en",
platforms: [
.macOS(.v10_15),
],
products: [
.executable(name: "xchtmlreport", targets: ["XCTestHTMLReport"]),
.library(name: "xchtmlreportcore", targets: ["XCTestHTMLReportCore"]),
],
dependencies: [
.package(url: "https://github.com/onevcat/Rainbow.git", .upToNextMajor(from: "3.0.0")),
.package(url: "https://github.com/davidahouse/XCResultKit.git", from: "1.2.0"),
.package(url: "https://github.com/scinfu/SwiftSoup.git", from: "2.4.3"),
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.0.0"),
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.50.4"),
],
targets: [
.executableTarget(
name: "XCTestHTMLReport",
dependencies: [
"XCTestHTMLReportCore",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
]
),
.target(
name: "XCTestHTMLReportCore",
dependencies: ["Rainbow", "XCResultKit"],
exclude: ["HTML"]
), // ignore HTML directory resources. They are already imported as static strings.
.testTarget(
name: "XCTestHTMLReportTests",
dependencies: ["XCTestHTMLReport", "SwiftSoup"],
resources: [
.process("Resources/TestResults.xcresult"),
.process("Resources/RetryResults.xcresult"),
.process("Resources/SanityResults.xcresult"),
]
),
]
)