Code Monkey home page Code Monkey logo

Comments (5)

afbjorklund avatar afbjorklund commented on June 8, 2024 1

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.

dnephin avatar dnephin commented on June 8, 2024

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.

howardjohn avatar howardjohn commented on June 8, 2024

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.

howardjohn avatar howardjohn commented on June 8, 2024

This really showcases golang/go#61233 well. So much time spent "running" packages with no tests at all!
2023-08-15_14-57-07

Spent some time refining the UI

from gotestsum.

ianb-mp avatar ianb-mp commented on June 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.