Use gotest.tools/gotestsum for unit and e2e tests#1639
Use gotest.tools/gotestsum for unit and e2e tests#1639vdemeester merged 3 commits intodocker:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1639 +/- ##
=======================================
Coverage 56.11% 56.11%
=======================================
Files 306 306
Lines 20909 20909
=======================================
Hits 11734 11734
Misses 8328 8328
Partials 847 847 |
|
I'm not sure; I think the new output is lacking information that we can use for analysis;
I'd rather have structured (machine-readable) output, so that we can analyse the output (and perhaps have a bot show failures as a GitHub comment) |
|
Looks like this |
Yes it does ! 👼
So, it still does… @silvin-lubecki's example doesn't show, but any failed test will be there (with
I do agree on that for the CI 👼 I wished we would have this output for day-to-day workflow (aka contributor doing |
I think it would be more correct to say that there is no longer a need to grep for
If you really want this in the UI you can use
As the author of |
This is possible by changing the format using an environment variable |
There was a problem hiding this comment.
LGTM
I suspect you'll want to set GOTESTSUM_JUNITFILE in the circleCI config to write the junit xml to a file, and add store_test_results to the config.
That could be done in a follow up.
Also, thank you @silvin-lubecki for this PR! I'm excited about the prospect of more people benefiting from gotestsum!
vdemeester
left a comment
There was a problem hiding this comment.
I suspect you'll want to set
GOTESTSUM_JUNITFILEin the circleCI config to write the junit xml to a file, and add store_test_results to the config.
@silvin-lubecki Yes I would like that in the PR 🙏 👼
The rest looks good to me 👼
|
@dnephin the output is weird on the circle CI And also there is no summary at the end... Any idea? |
|
Ya,
I would |
|
Much better, thank you @dnephin ! |
bab492b to
676076a
Compare
|
Well, according to the circle.ci logs, the But I honnestly don't know how to configure circle ci to use it... @dnephin ? |
…ify the output. Signed-off-by: Silvin Lubecki <[email protected]>
Signed-off-by: Silvin Lubecki <[email protected]>
cbe9092 to
a8427e8
Compare
Signed-off-by: Silvin Lubecki <[email protected]>
a8427e8 to
ff5a83c
Compare
2d4942d to
ff5a83c
Compare
|
I think what's happening is that the |
- What I did
Use gotestsum instead of
go testcommand line to run the tests and improve the test output.Moving from
To
- A picture of a cute animal (not mandatory but encouraged)
