buildkite / test-engine-client

Buildkite Test Engine Client (bktec) is an open source tool to orchestrate your test suites. It uses your Buildkite Test Engine suite data to intelligently partition and parallelise your tests.
MIT License
9 stars 1 forks source link

Display report after run #226

Open nprizal opened 16 hours ago

nprizal commented 16 hours ago

Description

Print report at the end of run that includes run statistics (number of tests that are passed/muted/failed), list of muted tests, and list of failed tests.

========== Buildkite Test Engine Report  ==========
+--------+-------------+---+
| Passed | first run   | 2 |
+        +-------------+---+
|        | after retry | 0 |
+--------+-------------+---+
| Muted  | passed      | 0 |
+        +-------------+---+
|        | failed      | 1 |
+--------+-------------+---+
| Failed |             | 1 |
+--------+-------------+---+
|                TOTAL | 4 |
+--------+-------------+---+

+++ Muted Tests:
- Tomato is vegetable (failed)

+++ Failed Tests:
- Banana is red
===================================================

Changes

nprizal commented 11 hours ago

One niggle I had is that it now doesn't easily show the total passed and total failed, maybe we could append that to the end?

Yeah I played with it, and couldn't find a nice way of displaying it. Maybe we can print summary first, and breakdown after that?

2 passed, 2 muted, 1 failed

+--------+-------------+---+
| Passed | first run   | 2 |
+        +-------------+---+
|        | after retry | 0 |
+--------+-------------+---+
| Muted  | passed      | 0 |
+        +-------------+---+
|        | failed      | 1 |
+--------+-------------+---+
| Failed |             | 1 |
+--------+-------------+---+
|                TOTAL | 4 |
+--------+-------------+---+

It'll also be interesting to see how this looks with different numbers on the bk/bk test suite, and the possible double up of the πŸ”₯ Test Analytics Failures πŸ”₯ summary. Another reason why the collector/bktec double up is annoying πŸ˜…

It can be a bit noisy. Also, the πŸ”₯ Test Analytics Failures πŸ”₯ only available in ruby collector at the moment.

niceking commented 9 hours ago

Ooooo yeah I like that summary line!

It can be a bit noisy. Also, the πŸ”₯ Test Analytics Failures πŸ”₯ only available in ruby collector at the moment.

Yeah but that's what we use on bk/bk which is what we'll be recording for the demo so it'll be rather obvious πŸ˜›