Comments (5)
Here is a little visualization tool, that I did:
https://github.com/afbjorklund/go-test-trace
It can help show some of the concurrency issues, as an addition to what is already shown by this tool.
from gotestsum.
This is awesome! Thank you for working on this!
I've used the actiongraph before to debug build times, but had not considered using it to augment gotestsum
. I really like this idea. I see you attempted to use a file descriptor to receive the data. did that not end up working for some reason?
Let me know if there is anything I can help with!
from gotestsum.
Yeah I initially tried to pass pipes to it then give go /dev/fd/3
. I don't really know why it doesn't work TBH, but the reads from the same pipe in gotestsum never return anything for actiongraph. For debug-trace it worked though afaik. go
handles these differently, with actiongraph it open+closes at the start, then open+closes at the end. With trace it just opens, appends a bunch for the lifetime of the program, then closes, which could be related. Probably a way to make it work, but I couldn't figure it out so moved to tmp file for now. Probably something we should track down if/when we move forward with this, though
from gotestsum.
This really showcases golang/go#61233 well. So much time spent "running" packages with no tests at all!
Spent some time refining the UI
from gotestsum.
This looks very cool. In my case, all tests are in the same package (with many tests running simultaneously via t.parallel()
). It'd be nice to have a way of showing which tests are 'in progress' with a runtime for each.
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
- 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 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.