-
Notifications
You must be signed in to change notification settings - Fork 528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to generate failure only report #1666
Comments
Sorry for the delay @chenrui333 could you explain a bit further how do you process now? Are you using |
yeah, that is what i am looking for, just something simpler that i can compile and send to slack. |
Right now, I am doing lots of manual copy/paste for the hurl failures into the slack threads. |
Ok, we can start something simple and iterate with your input! |
What we can also do is to make the HTML report "greppable". Actually: <html>
...
<body>
...
<h2>Report</h2>
<div class="summary">
<div class="date">Sat, 24 Jun 2023 22:01:01 +0200</div>
<div class="count">Executed: 5 (100%)</div>
<div class="count">Succeeded: 2 (40.0%)</div>
<div class="count">Failed: 3 (60.0%)</div>
</div>
...
<tr class="failure" data-duration="331" data-status="failure" data-filename="/tmp/test.hurl" data-id="8ac2c1b5-596d-4399-8831-a82302a8233f">
<td><a href="store/8ac2c1b5-596d-4399-8831-a82302a8233f-timeline.html">/tmp/test.hurl</a></td>
<td>failure</td>
<td>0.331</td>
</tr>
<tr class="failure" data-duration="349" data-status="failure" data-filename="/tmp/test.hurl" data-id="a60f6f0e-3d02-4f2f-ab75-07a0dc21726e">
<td><a href="store/a60f6f0e-3d02-4f2f-ab75-07a0dc21726e-timeline.html">/tmp/test.hurl</a></td>
<td>failure</td>
<td>0.349</td>
</tr>
<tr class="success" data-duration="520" data-status="success" data-filename="/tmp/test.hurl" data-id="3e27250b-340f-4969-8a55-a61a8944d994">
<td><a href="store/3e27250b-340f-4969-8a55-a61a8944d994-timeline.html">/tmp/test.hurl</a></td>
<td>success</td>
<td>0.52</td>
</tr>
...
</body> We could at minima write each <html>
...
<body>
...
<h2>Report</h2>
<div class="summary">
<div class="date">Sat, 24 Jun 2023 22:01:01 +0200</div>
<div class="count">Executed: 5 (100%)</div>
<div class="count">Succeeded: 2 (40.0%)</div>
<div class="count">Failed: 3 (60.0%)</div>
</div>
...
<tr class="failure" data-duration="331" data-status="failure" data-filename="/tmp/test.hurl" data-id="8ac2c1b5-596d-4399-8831-a82302a8233f"><td><a href="store/8ac2c1b5-596d-4399-8831-a82302a8233f-timeline.html">/tmp/test.hurl</a></td><td>failure</td><td>0.331</td></tr>
<tr class="failure" data-duration="349" data-status="failure" data-filename="/tmp/test.hurl" data-id="a60f6f0e-3d02-4f2f-ab75-07a0dc21726e"><td><a href="store/a60f6f0e-3d02-4f2f-ab75-07a0dc21726e-timeline.html">/tmp/test.hurl</a></td><td>failure</td><td>0.349</td></tr>
<tr class="success" data-duration="520" data-status="success" data-filename="/tmp/test.hurl" data-id="3e27250b-340f-4969-8a55-a61a8944d994"><td><a href="store/3e27250b-340f-4969-8a55-a61a8944d994-timeline.html">/tmp/test.hurl</a></td><td>success</td><td>0.52</td></tr> And $ grep -F '<tr' report/index.html
<tr class="failure" data-duration="331" data-status="failure" data-filename="/tmp/test.hurl" data-id="8ac2c1b5-596d-4399-8831-a82302a8233f"><td><a href="store/8ac2c1b5-596d-4399-8831-a82302a8233f-timeline.html">/tmp/test.hurl</a></td><td>failure</td><td>0.331</td></tr>
<tr class="failure" data-duration="349" data-status="failure" data-filename="/tmp/test.hurl" data-id="a60f6f0e-3d02-4f2f-ab75-07a0dc21726e"><td><a href="store/a60f6f0e-3d02-4f2f-ab75-07a0dc21726e-timeline.html">/tmp/test.hurl</a></td><td>failure</td><td>0.349</td></tr>
<tr class="success" data-duration="520" data-status="success" data-filename="/tmp/test.hurl" data-id="3e27250b-340f-4969-8a55-a61a8944d994"><td><a href="store/3e27250b-340f-4969-8a55-a61a8944d994-timeline.html">/tmp/test.hurl</a></td><td>success</td><td>0.52</td></tr> We can do something like this for a quick start if it helps you and see |
@chenrui333 |
that is great!! Subscribed to that issue as well. 😄 |
Not sure if this is a feature request or not, I have a use case that I want to send the concise report (i.e. failure test) into slack notification so that folks can determine whether the failures are just flaky tests.
(Right now I am compiling the failure test reports manually)
Let me know if that makes sense.
The text was updated successfully, but these errors were encountered: