Comments (3)
Thank you for the feature suggestion! Job summaries (docs) seem like a great feature.
It looks like these summaries are printed separately from the test output, so the way I think this should work is something along these lines:
gotestsum
should print its summary as it does today to the regular step output- if the
GITHUB_STEP_SUMMARY
environment variable is set to the path of a file that exists, write a markdown summary to that file - add a new flag to specify what the summary should look like, or to disable it entirely. I imagine that flag would work similar to the existing
--hide-summary
flag, but that will depend on exactly what's in the summary.
For the contents of the markdown summary, I guess it would be pretty similar to the existing summary, except maybe in reverse. Start with a DONE
line that has counts of tests pass/fail/skipped/error/total. Followed by sections for errors, then failed output , and finally skipped test output. If the summary supports collapsed sections that might be nice to hide the full output by default, or maybe only when the output is longer than ~10 lines.
Anything else we could include in that summary?
from gotestsum.
Start with a DONE line that has counts of tests pass/fail/skipped/error/total. Followed by sections for errors, then failed output , and finally skipped test output.
That sounds pretty good to me.
As for where to write the summary I'm not sure. Now that you've mentioned it it seems like a separate output. Would an option like --summary-output-path $GITHUB_STEP_SUMMARY
make sense?
from gotestsum.
You can use go-test-report, to generate markdown (and HTML) summaries
There is a related issue on how to make the tools co-operation better, and a request to move the project to gotest.tools
from gotestsum.
Related Issues (20)
- . HOT 1
- Support running tests using RR HOT 3
- Support(): When I use gotestsum, some unexpected message output HOT 1
- watcher: warning on invalid symlinks HOT 2
- error when go install v1.11.0 HOT 4
- gotestsum slow in dind container HOT 2
- junitxml: include full output in system-out field HOT 7
- Duplicated `go test` arguments on rerun, causing `package is not in std` HOT 1
- `--junitfile` XML report contains all test runs if using `--rerun-fails` HOT 2
- Need Help with rerun-fails HOT 6
- Strange output with testname format and coverprofile HOT 2
- Order of packages when using pkgname HOT 2
- Support for Fuzzy Testing using testing.F HOT 1
- `--rerun-fails` doesn't work when `--packages` specifies a source file HOT 1
- why does the testname format does not support icons? HOT 1
- Test cases passed but gotestsum print out Failed in summary HOT 7
- Warn on foo.go~ when using --watch HOT 2
- gotestsum support to run multiple tests using fully qualified name of tests HOT 3
- Latest dependabot update raises module requirement to Go 1.19 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gotestsum.