Comments (7)
I was hoping to be able to do one package per line as well. When I went to implement the format I noticed that the output from test2json
is not necessarily ordered in the way you would expect. The start package event would be sent before the previous test had finished running.
Because of the ordering you'd end up with the dots on each line not matching the tests in the package, which I found to be misleading. The problem still exists with the single line format, but at least that way it doesn't look as much like the dots necessarily match the proceeding package.
I'm not sure if that behaviour has changed in a more recent version of Go. I believe it has to do with go test
running multiple packages in parallel by default. I think it's probably worth revisiting to see if there is some way to make it work.
from gotestsum.
The problem still exists with the single line format, but at least that way it doesn't look as much like the dots necessarily match the proceeding package.
If I understand that correctly, it means that a test dot can be printed to another package? And so if we have a failing test, it can be printed to a wrong package, then misleading if you try to find the failing test in the wrong package?
If that is the case, I don't think the dot
format is really useful 🤔
from gotestsum.
Ya, it probably isn't. I kept it around hoping there would be some way to fix it.
I think one package per line would be possible by keeping track of which package is on which line and moving the cursor to print on that line, like how download progress clis work, but I expect that would be some work.
from gotestsum.
keeping track of which package is on which line and moving the cursor to print on that line, like how download progress clis work
Yep I thought about that too
but I expect that would be some work.
Sure it would 😄
from gotestsum.
Should I close this issue?
from gotestsum.
I think we should keep it open. It is a good idea, and maybe one day it will get implemented.
from gotestsum.
I put up #79 which implements this format
from gotestsum.
Related Issues (20)
- dots-v2 is jittery HOT 3
- New formatter idea: worker-oriented view HOT 5
- dotsv2: Go test stderr clobbers the outpout HOT 1
- . 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 3
- 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
- Support Markdown formatted output. HOT 3
- Strange output with testname format and coverprofile HOT 2
- Order of packages when using pkgname HOT 2
- Support for Fuzzy Testing using testing.F
- `--rerun-fails` doesn't work when `--packages` specifies a source file
- why does the testname format does not support icons?
- Test cases passed but gotestsum print out Failed in summary HOT 6
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.