Comments (2)
Ok, great! Yeah #326 seems like that would be perfect for us!
Yeah this is kinda what I'm doing right now:
go run gotest.tools/gotestsum --format testname --no-color=false --junitfile unit-tests.xml --jsonfile tests.json -- -vet=off -v -tags=test_unit ./... | grep -v EMPTY
go run gotest.tools/gotestsum --format standard-verbose --raw-command -- cat tests.json > test_unit.log
It's been working great.
from gotestsum.
That you for raising this issue! Currently it's not possible to hide the test failure output with testname
.
In #326 we talked about adding a --format-with-fails
flag. This flag would be a way to include the test failure output, but I think we could use --format-with-fails=false
to hide the output from testname
.
I'm sending the standard-verbose output to a file so I can look there to see exactly what happened.
As a workaround until we add the new flag, another way to accomplish this is to use --jsonfile=<filename>
. That should let you use the testname
format, while still getting the full output in a file. You can turn the jsonfile into the standard-verbose
format using:
gotestsum --raw-command -f standard-verbose -- cat jsonfile.log
You could do that before saving the artifact if you want to save the human readable output instead of the jsonfile.
from gotestsum.
Related Issues (20)
- How to auto install HOT 3
- Docker image with gotestsum HOT 4
- Format option proposal: `pkgname-coverage-graph` HOT 5
- Feat: add optional configurable tests summary HOT 9
- Add support for build tags in gotestsum HOT 1
- Allow timeout parameter to be passed to go test HOT 2
- race detected output inconsistently reported HOT 5
- Does gotestsum support adding properties to test cases in the junit xml result file ? HOT 9
- Add `json` format support (not via --jsonfile) HOT 6
- Add github-actions and buildkite formats HOT 3
- Add support Ginkgo testing framework HOT 1
- Coverage not reported HOT 1
- The release for windows/arm64 was skipped HOT 1
- Issue with verbose output HOT 3
- gotestsum stops on first package that has failing test HOT 1
- Successful benchmark run is marked as failed HOT 1
- Wait before retrying tests via --rerun-failed flag HOT 1
- generate coverage reports HOT 1
- Subtest with parenthesis in name fail to rerun HOT 3
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.