forked from XCTestHTMLReport/XCTestHTMLReport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreateTemplates.sh
executable file
·50 lines (41 loc) · 1.16 KB
/
createTemplates.sh
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
46
47
48
49
50
#!/bin/bash
echo `pwd`
index=`cat Sources/XCTestHTMLReport/HTML/index.html | sed 's,",\\\\",g'`
testSummary=`cat Sources/XCTestHTMLReport/HTML/test_summary.html | sed 's,",\\\\",g'`
run=`cat Sources/XCTestHTMLReport/HTML/run.html | sed 's,",\\\\",g'`
device=`cat Sources/XCTestHTMLReport/HTML/device.html | sed 's,",\\\\",g'`
test=`cat Sources/XCTestHTMLReport/HTML/test.html | sed 's,",\\\\",g'`
activity=`cat Sources/XCTestHTMLReport/HTML/activity.html | sed 's,",\\\\",g'`
screenshot=`cat Sources/XCTestHTMLReport/HTML/screenshot.html | sed 's,",\\\\",g'`
text=`cat Sources/XCTestHTMLReport/HTML/text.html | sed 's,",\\\\",g'`
content="
/// DO NOT EDIT! This file is autogenerated by createTemplates.sh
struct HTMLTemplates
{
static let index = \"\"\"
$index
\"\"\"
static let device = \"\"\"
$device
\"\"\"
static let run = \"\"\"
$run
\"\"\"
static let testSummary = \"\"\"
$testSummary
\"\"\"
static let test = \"\"\"
$test
\"\"\"
static let activity = \"\"\"
$activity
\"\"\"
static let screenshot = \"\"\"
$screenshot
\"\"\"
static let text = \"\"\"
$text
\"\"\"
}
"
echo "$content" > 'Sources/XCTestHTMLReport/Classes/HTMLTemplates.swift'