You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 7, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on May 7, 2021. It is now read-only.
i'm not sure if this is intentional or a bug but when running go test fails there is no output of any kind only the abscensce of the coverage hints at something beeing wrong.
Would be nice to have a pane display the output. Extra awesomeness would be to parse that output to jump to where it failed.
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
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.
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:
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.
Activity
joefitzgerald commentedon Jul 26, 2014
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:Does that sound right? Anything else?
cryptix commentedon Jul 26, 2014
That would be more than enough for me. 👍
joefitzgerald commentedon Jul 26, 2014
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!
cryptix commentedon Jul 26, 2014
Yeah, I already saw it and subscribed. Can't wait! :D
freewil commentedon Feb 25, 2015
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.svanharmelen commentedon May 1, 2015
+1 this would be a much appreciated and helpful feature!
Erwyn commentedon Jun 15, 2015
Same here would love to see failing tests…
gregz67 commentedon Jun 17, 2015
What are people using to get
go test [-v]output while in atom. I'd like to see test output on save.nickpoorman commentedon Jul 13, 2015
+1
xogeny commentedon Jul 14, 2015
I've come up with a solution that I'm pretty happy with. I use
goconveyfor testing. I run this in a terminal window somewhere and it runs indefinitely. But the interesting thing aboutgoconveyis that it spawns a web server that gives a nice report about testing, coverage, etc. Then what I do is openhttp://localhost:8080using thebrowser-plusextension. Each time I save my code,goconveyautomatically re-runs the tests and I see the results immediately in the right hand pane.Now, my tests are instrumented with
goconveyassertions. Not sure how this would work with ordinarygo testtests, but it might work.By default
goconveyuses 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:gregz67 commentedon Aug 5, 2015
Thanks @xogeny. I will have to look at
goconvey. I ended up simply using run-command for running a simplego testcommand.bwiggs commentedon Nov 2, 2015
Would love this feature! Any updates?
joprice commentedon Jan 27, 2016
I'm using reflex
reflex -r '\.go$' ./testWhere 'test' is this script:
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.
joefitzgerald commentedon Aug 24, 2016
Kinda like this?:
joefitzgerald commentedon Sep 30, 2016
This is released in https://github.com/joefitzgerald/go-plus/releases/tag/v4.3.0.