mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-23 11:02:43 +03:00
Update reports (include xml junit)
This commit is contained in:
parent
c6bf58030f
commit
5eef54bfa4
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
@ -89,7 +89,7 @@ jobs:
|
||||
./test_curl_commands.sh tests/*.curl
|
||||
./test_html_output.py tests/*.html
|
||||
xmllint --noout tests/*.html
|
||||
./report-html.sh
|
||||
./report.sh
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
if: ${{ always() }}
|
||||
@ -98,7 +98,8 @@ jobs:
|
||||
path: |
|
||||
integration/server.log
|
||||
integration/server-ssl.log
|
||||
|
||||
integration/report/tests.json
|
||||
integration/report/tests.xml
|
||||
test-osx:
|
||||
runs-on: macos-latest
|
||||
strategy:
|
||||
|
@ -4,7 +4,7 @@
|
||||
set +e
|
||||
rm -rf report/*
|
||||
find tests -name "*.hurl" | sort | while read -r hurl_file; do
|
||||
options=("--json report/tests.json" "--report-html report/html" "--output /dev/null")
|
||||
options=("--json report/tests.json" "--report-html report/html" "--report-junit report/tests.xml" "--output /dev/null")
|
||||
if test -f "${hurl_file%.*}.options"; then
|
||||
options+=("$(cat "${hurl_file%.*}.options")")
|
||||
fi
|
File diff suppressed because one or more lines are too long
92
integration/report/html/tests/non_utf8.hurl.html
Normal file
92
integration/report/html/tests/non_utf8.hurl.html
Normal file
@ -0,0 +1,92 @@
|
||||
<!DOCTYPE html>
|
||||
<html><head><title>Hurl File</title><style>
|
||||
body {
|
||||
counter-reset: line;
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
span.line {
|
||||
line-height: 1.2rem;
|
||||
}
|
||||
|
||||
span.line:before {
|
||||
counter-increment: line;
|
||||
content: counter(line);
|
||||
display: inline-block;
|
||||
border-right: 1px solid #ddd;
|
||||
padding: 0 1em;
|
||||
margin-right: .5em;
|
||||
color: #888;
|
||||
width: 2.5em;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.method {
|
||||
color: black;
|
||||
}
|
||||
|
||||
.url {
|
||||
color: darkblue;
|
||||
}
|
||||
|
||||
.version {
|
||||
color: black;
|
||||
}
|
||||
.number {
|
||||
color: blue;
|
||||
}
|
||||
.section-header {
|
||||
color: darkmagenta;
|
||||
}
|
||||
|
||||
.query-type {
|
||||
color: teal;
|
||||
}
|
||||
|
||||
.subquery-type {
|
||||
color: darkblue;
|
||||
}
|
||||
|
||||
.not {
|
||||
color: darkblue;
|
||||
}
|
||||
|
||||
.predicate-type {
|
||||
color: darkblue;
|
||||
}
|
||||
|
||||
.string {
|
||||
color: darkgreen;
|
||||
}
|
||||
.raw {
|
||||
color: darkgreen;
|
||||
}
|
||||
.comment {
|
||||
color: dimgray;
|
||||
}
|
||||
.name {
|
||||
color: darkgreen;
|
||||
}
|
||||
.json {
|
||||
color: darkgreen;
|
||||
}
|
||||
.xml {
|
||||
color: darkgreen;
|
||||
}
|
||||
.base64 {
|
||||
color: darkgreen;
|
||||
}
|
||||
.hex {
|
||||
color: darkgreen;
|
||||
}
|
||||
.filename {
|
||||
color: darkgreen;
|
||||
}
|
||||
.cookie-value {
|
||||
color: darkgreen;
|
||||
}</style></head><body>
|
||||
<pre><code class="language-hurl"><span class="hurl-entry"><span class="request"><span class="line"><span class="method">GET</span> <span class="url">http://localhost:8000/non-utf8</span></span>
|
||||
</span><span class="response"><span class="line"><span class="version">HTTP/1.0</span> <span class="number">200</span></span>
|
||||
</span></span><span class="line"></span>
|
||||
</code></pre>
|
||||
</body></html>
|
@ -89,5 +89,10 @@ span.line:before {
|
||||
<span class="line">file,<span class="filename">data.bin</span>;</span>
|
||||
</span><span class="response"><span class="line"></span>
|
||||
<span class="line"><span class="version">HTTP/1.0</span> <span class="number">200</span></span>
|
||||
</span></span><span class="hurl-entry"><span class="request"><span class="line"></span>
|
||||
<span class="line"><span class="method">POST</span> <span class="url">http://localhost:8000/post-file</span></span>
|
||||
<span class="line">file,<span class="filename">post_file_with\ space</span>;</span>
|
||||
</span><span class="response"><span class="line"></span>
|
||||
<span class="line"><span class="version">HTTP/1.0</span> <span class="number">200</span></span>
|
||||
</span></span></code></pre>
|
||||
</body></html>
|
@ -87,8 +87,16 @@ span.line:before {
|
||||
}</style></head><body>
|
||||
<pre><code class="language-hurl"><span class="hurl-entry"><span class="request"><span class="line"><span class="method">GET</span> <span class="url">http://localhost:8000/~user</span></span>
|
||||
</span><span class="response"><span class="line"><span class="version">HTTP/1.0</span> <span class="number">200</span></span>
|
||||
<span class="raw"><span class="line">```user```</span></span>
|
||||
</span></span><span class="hurl-entry"><span class="request"><span class="line"></span>
|
||||
<span class="line"><span class="method">GET</span> <span class="url">http://localhost:8000/%7Euser</span></span>
|
||||
</span><span class="response"><span class="line"><span class="version">HTTP/1.0</span> <span class="number">200</span></span>
|
||||
</span></span></code></pre>
|
||||
<span class="raw"><span class="line">```user```</span></span>
|
||||
</span></span><span class="hurl-entry"><span class="request"><span class="line"></span>
|
||||
<span class="line"></span><span class="comment"># TODO: add single quote (needs to be escaped in curl command-line)</span>
|
||||
<span class="line"><span class="method">GET</span> <span class="url">http://localhost:8000/!$&()*+,;=:@[]</span></span>
|
||||
</span><span class="response"><span class="line"><span class="version">HTTP/1.0</span> <span class="number">200</span></span>
|
||||
<span class="raw"><span class="line">```weird```</span></span>
|
||||
</span></span><span class="line"></span>
|
||||
</code></pre>
|
||||
</body></html>
|
File diff suppressed because it is too large
Load Diff
34
integration/report/tests.xml
Normal file
34
integration/report/tests.xml
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user