forked from XCTestHTMLReport/XCTestHTMLReport
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into develop_ad
- Loading branch information
Showing
73 changed files
with
724 additions
and
2,594 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,33 +1,6 @@ | ||
TestResults* | ||
.DS_Store | ||
xchtmlreport | ||
# Xcode | ||
# | ||
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore | ||
|
||
## Build generated | ||
builds/ | ||
DerivedData/ | ||
|
||
## Various settings | ||
*.pbxuser | ||
!default.pbxuser | ||
*.mode1v3 | ||
!default.mode1v3 | ||
*.mode2v3 | ||
!default.mode2v3 | ||
*.perspectivev3 | ||
!default.perspectivev3 | ||
/.build | ||
/Packages | ||
/*.xcodeproj | ||
xcuserdata/ | ||
xchtmlreport.swiftmodule/ | ||
|
||
## Other | ||
*.moved-aside | ||
*.xccheckout | ||
*.xcscmblueprint | ||
|
||
## Obj-C/Swift specific | ||
*.hmap | ||
*.ipa | ||
*.dSYM.zip | ||
*.dSYM |
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,7 +1,10 @@ | ||
osx_image: xcode9.3 | ||
osx_image: | ||
- xcode9.3 | ||
- xcode10.1 | ||
- xcode10.2 | ||
|
||
language: objective-c | ||
|
||
before_script: | ||
- bundle install | ||
script: | ||
- set -o pipefail | ||
- set -o pipefail && xcodebuild clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -workspace XCTestHTMLReport.xcworkspace -scheme XCTestHTMLReport -configuration Release | xcpretty | ||
- ./xchtmlreport -h |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"object": { | ||
"pins": [ | ||
{ | ||
"package": "Rainbow", | ||
"repositoryURL": "https://github.com/onevcat/Rainbow.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "9c52c1952e9b2305d4507cf473392ac2d7c9b155", | ||
"version": "3.1.5" | ||
} | ||
}, | ||
{ | ||
"package": "XCResultKit", | ||
"repositoryURL": "https://github.com/davidahouse/XCResultKit.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "a3c59768f90c0a0945ef1b8576017175f04a54b3", | ||
"version": "0.4.0" | ||
} | ||
} | ||
] | ||
}, | ||
"version": 1 | ||
} |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// swift-tools-version:5.1 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "XCTestHTMLReport", | ||
products: [ | ||
.executable(name: "xchtmlreport", targets: ["XCTestHTMLReport"]) | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/onevcat/Rainbow.git", from: "3.0.0"), | ||
.package(url: "https://github.com/davidahouse/XCResultKit.git", from: "0.4.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: "XCTestHTMLReport", | ||
dependencies: ["Rainbow", "XCResultKit"]), | ||
.testTarget( | ||
name: "XCTestHTMLReportTests", | ||
dependencies: ["XCTestHTMLReport"]), | ||
] | ||
) |
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
28 changes: 28 additions & 0 deletions
28
Sources/XCTestHTMLReport/Classes/Extensions/String+Path.swift
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// String+Path.swift | ||
// XCTestHTMLReport | ||
// | ||
// Created by Titouan Van Belle on 26.11.17. | ||
// Copyright © 2017 Tito. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
extension String | ||
{ | ||
func dropLastPathComponent() -> String | ||
{ | ||
if let url = URL(string: self) { | ||
return url.deletingLastPathComponent().path | ||
} | ||
return self | ||
} | ||
|
||
func addPathComponent(_ component: String) -> String | ||
{ | ||
if let url = URL(string: self) { | ||
return url.appendingPathComponent(component).path | ||
} | ||
return self | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
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
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
// | ||
|
||
import Foundation | ||
import Rainbow | ||
|
||
struct Logger | ||
{ | ||
|
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
File renamed without changes.
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
File renamed without changes.
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.