Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 84b56b6
Showing
44 changed files
with
3,731 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
TestResults | ||
|
||
# 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 | ||
xcuserdata/ | ||
|
||
## 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Copyright (c) 2017 Titouan Van Belle (https://github.com/TitouanVanBelle) | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
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,39 @@ | ||
# XCUITestHTMLReport | ||
|
||
Xcode-like HTML report for UI Tests | ||
|
||
## Installation | ||
|
||
Simply go to your iOS project and download the latest version of XCUITestHTMLReport | ||
|
||
``` bash | ||
$ curl -o xchtmlreport https://raw.githubusercontent.com/TitouanVanBelle/XCUITestHTMLReport/master/xchtmlreport | ||
``` | ||
|
||
or download a specific version | ||
|
||
``` bash | ||
$ curl -o xchtmlreport https://raw.githubusercontent.com/TitouanVanBelle/XCUITestHTMLReport/1.0.0/xchtmlreport | ||
``` | ||
|
||
## Usage | ||
|
||
Run your UI tests using `xcodebuild` without forgetting to specify the `resultBundlePath` | ||
|
||
``` bash | ||
$ xcodebuild test -workspace XCUITestHTMLReport.xcworkspace -scheme XCUITestHTMLReportSampleApp -destination 'platform=iOS Simulator,name=iPhone 7,OS=11.0' -resultBundlePath TestResults | ||
``` | ||
|
||
Then use the previously downloaded xchtmlreport tool to create the HTML report | ||
|
||
``` bash | ||
$ ./xchtmlreport -r TestResults | ||
``` | ||
|
||
## Contribution | ||
|
||
Please create an issue whenever you find an issue or think a feature could be a good addition to XCUITestHTMLReport. Also feel free to take a shot at these issues. | ||
|
||
## License | ||
|
||
XCUITestHTMLReport is [available under the MIT license](https://github.com/TitouanVanBelle/XCUITestHTMLReport/blob/master/LICENSE). |
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 @@ | ||
import 'tasks/test.rake' |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,20 @@ | ||
|
||
struct HTMLTemplates | ||
{ | ||
static let index = """ | ||
""" | ||
|
||
static let testSummary = """ | ||
""" | ||
|
||
static let test = """ | ||
""" | ||
|
||
static let activity = """ | ||
""" | ||
} | ||
|
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,38 @@ | ||
#!/bin/bash | ||
echo `pwd` | ||
index=`cat XCUITestHTMLReport/HTML/index.html | sed 's,",\\\\",g'` | ||
testSummary=`cat XCUITestHTMLReport/HTML/test_summary.html | sed 's,",\\\\",g'` | ||
test=`cat XCUITestHTMLReport/HTML/test.html | sed 's,",\\\\",g'` | ||
activity=`cat XCUITestHTMLReport/HTML/activity.html | sed 's,",\\\\",g'` | ||
screenshot=`cat XCUITestHTMLReport/HTML/screenshot.html | sed 's,",\\\\",g'` | ||
text=`cat XCUITestHTMLReport/HTML/text.html | sed 's,",\\\\",g'` | ||
|
||
content=" | ||
struct HTMLTemplates | ||
{ | ||
static let index = \"\"\" | ||
$index | ||
\"\"\" | ||
static let testSummary = \"\"\" | ||
$testSummary | ||
\"\"\" | ||
static let test = \"\"\" | ||
$test | ||
\"\"\" | ||
static let activity = \"\"\" | ||
$activity | ||
\"\"\" | ||
static let screenshot = \"\"\" | ||
$screenshot | ||
\"\"\" | ||
static let text = \"\"\" | ||
$text | ||
\"\"\" | ||
} | ||
" | ||
echo "$content" > 'XCUITestHTMLReport/HTMLTemplates.swift' |
Oops, something went wrong.