Update reports (include xml junit)

This commit is contained in:
Fabrice Reix 2021-11-08 11:39:56 +01:00
parent c6bf58030f
commit 5eef54bfa4
8 changed files with 2490 additions and 1104 deletions

View File

@ -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:

View File

@ -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

View 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>

View File

@ -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>

View File

@ -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/!$&amp;()*+,;=:@[]</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

File diff suppressed because one or more lines are too long