-
Notifications
You must be signed in to change notification settings - Fork 118
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
#810 Prints matrix error as table #819
#810 Prints matrix error as table #819
Conversation
// when | ||
withGlobalExceptionHandling(block) | ||
// then | ||
assertTrue(output.log.contains("Error: Matrix failed: 1")) | ||
assertTrue(output.log.contains("Error: Matrix failed: 2")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this test will be updated cause assert methods was not called after System.exit
, so I introduced new testing behavior given-will-when 😄 to make them work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating this test 👍
Codecov Report
@@ Coverage Diff @@
## master #819 +/- ##
============================================
+ Coverage 78.30% 78.67% +0.37%
- Complexity 667 675 +8
============================================
Files 149 152 +3
Lines 3014 3090 +76
Branches 439 446 +7
============================================
+ Hits 2360 2431 +71
- Misses 374 376 +2
- Partials 280 283 +3 |
I wonder if #810 is about displaying only error outputs or maybe also successed. @bootstraponline ? |
I think we should display the results (failed, success, etc.) for each matrix. Same as gcloud CLI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add support for other status types
I have added printing |
} | ||
val total = matrices.map.size | ||
// unfinished matrix will not be reported as failed since it's still running | ||
val success = matrices.map.values.count { it.failed().not() } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
For Debug.kt
Table is printed twice
|
Basically the first table is a summary report for all matrix (if you have many matrices, it will print them all) and second one log error of each matrix. To fix this issue I could skip printing table as error log in |
…matrix-error-as-table # Conflicts: # release_notes.md
I'd study the gcloud CLI matrix table. We should be able to port that to Kotlin. The end result should be only one table. Primarily the goal of Flank is to match gcloud, and add a bit of extra features on top. 🙂 |
Here's one way you can test the PR: Run
Run the same
|
I made output table same as for GCloud ( link, single table, status color etc) |
I will check outputs
and Test Lab
Colors are the same. But in flank we don't have TEST_DETAILS filled. I don't known its ok so please tell what you think. @bootstraponline @pawelpasterz @jan-gogo |
Yes, that's the question which I asked above about properly data usage
|
// when | ||
withGlobalExceptionHandling(block) | ||
// then | ||
assertTrue(output.log.contains("Error: Matrix failed: 1")) | ||
assertTrue(output.log.contains("Error: Matrix failed: 2")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating this test 👍
@adamfilipow92 |
Should I create a task for it? |
I guess It's a good idea If you feel more comfortable with separated issue/PR |
Created #829 |
I agree, let's match gcloud output. Having this as a new task makes sense. #829 🙂 |
Fixes #810
Checklist