GithubHelp home page GithubHelp logo

Comments (15)

joefitzgerald avatar joefitzgerald commented on May 22, 2024 1

Kinda like this?:

screen shot 2016-08-24 at 12 25 08 am
screen shot 2016-08-24 at 12 24 52 am

from go-plus.

joefitzgerald avatar joefitzgerald commented on May 22, 2024

That would be a nice enhancement. You're right that currently we ignore the test output from go test -coverprofile (except the coverage information). Given we're already running the tests, it'd be nice to get:

  • Test errors if they occurred, with links to the line that caused the failure
  • Indication of the number of passing / failing tests in the package
  • Indication of the coverage %

Does that sound right? Anything else?

from go-plus.

cryptix avatar cryptix commented on May 22, 2024

That would be more than enough for me. 👍

from go-plus.

joefitzgerald avatar joefitzgerald commented on May 22, 2024

By the way, per your reddit question, watch this PR - when it's done, I have cleared the path for gocode to be added to go-plus.

atom/autocomplete-plus#99

Thanks for the great feedback! This is exactly what I need!

from go-plus.

cryptix avatar cryptix commented on May 22, 2024

Yeah, I already saw it and subscribed. Can't wait! :D

from go-plus.

freewil avatar freewil commented on May 22, 2024

It would be nice to see the output of go test [-v] to see failing tests, but I could do without the background color changes from the code coverage results.

from go-plus.

svanharmelen avatar svanharmelen commented on May 22, 2024

+1 this would be a much appreciated and helpful feature!

from go-plus.

Erwyn avatar Erwyn commented on May 22, 2024

Same here would love to see failing tests…

from go-plus.

gregz67 avatar gregz67 commented on May 22, 2024

What are people using to get go test [-v] output while in atom. I'd like to see test output on save.

from go-plus.

nickpoorman avatar nickpoorman commented on May 22, 2024

+1

from go-plus.

xogeny avatar xogeny commented on May 22, 2024

I've come up with a solution that I'm pretty happy with. I use goconvey for testing. I run this in a terminal window somewhere and it runs indefinitely. But the interesting thing about goconvey is that it spawns a web server that gives a nice report about testing, coverage, etc. Then what I do is open http://localhost:8080 using the browser-plus extension. Each time I save my code, goconvey automatically re-runs the tests and I see the results immediately in the right hand pane.

Now, my tests are instrumented with goconvey assertions. Not sure how this would work with ordinary go test tests, but it might work.

By default goconvey uses a nice dark theme that is actually very close to Atom's defaults. So with the split pane view, it actually looks like it was intentionally integrated:

screen shot 2015-07-14 at 11 26 16 am

from go-plus.

gregz67 avatar gregz67 commented on May 22, 2024

Thanks @xogeny. I will have to look at goconvey. I ended up simply using run-command for running a simple go test command.

from go-plus.

bwiggs avatar bwiggs commented on May 22, 2024

Would love this feature! Any updates?

from go-plus.

joprice avatar joprice commented on May 22, 2024

I'm using reflex

reflex -r '\.go$' ./test

Where 'test' is this script:

out=/tmp/c.out
go test -covermode=count -coverprofile=$out ./lists
go tool cover -func=$out
go tool cover -html=$out -o /tmp/coverage.html

Not too sophisticated, but it lets me run tests and coverage by itself, independent of atom, see the output in the console, and view coverage data in the browser (Since this plugin also doesn't show coverage inline when any test fails), without buying into a new and coverage style like Convey.

from go-plus.

joefitzgerald avatar joefitzgerald commented on May 22, 2024

This is released in https://github.com/joefitzgerald/go-plus/releases/tag/v4.3.0.

from go-plus.

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.