Comments (15)
Kinda like this?:
from go-plus.
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.
That would be more than enough for me. 👍
from go-plus.
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.
Thanks for the great feedback! This is exactly what I need!
from go-plus.
Yeah, I already saw it and subscribed. Can't wait! :D
from go-plus.
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.
+1 this would be a much appreciated and helpful feature!
from go-plus.
Same here would love to see failing tests…
from go-plus.
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.
+1
from go-plus.
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:
from go-plus.
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.
Would love this feature! Any updates?
from go-plus.
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.
This is released in https://github.com/joefitzgerald/go-plus/releases/tag/v4.3.0.
from go-plus.
Related Issues (20)
- Completion
- replacing characters via r in .go files does not work in unsaved files
- go-plus attempts to update tools/packages every time it is launched HOT 11
- Failed to activate the go-plus package
- autocomplet doesn't work after updating go/goplus/atom HOT 2
- Failed to activate the go-plus package HOT 1
- Autocomplete stopped working HOT 1
- On goplus startup, complaints during load of golangci
- Failed to activate the go-plus package
- Confusing error message on save.
- The dependencies keep on installing themselves again and again HOT 6
- Suggestion: Why not set input start point in auto-complete function parentheses
- Looking for new maintainer(s) HOT 7
- goto declaration doesn't work without contortionist level configuration
- Unable to clear output
- Installing go plus creates a "github.com" folder within my source code folder, how do I specify a different location for all of that? HOT 1
- Since update of golang to go1.13.6 and atom to 1.43.0 the go-plus plugin does not work anymore. HOT 2
- Missing Go Tool after fresh installation HOT 2
- installation fails HOT 5
- Uncaught TypeError: Cannot read property 'props' of undefined
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 go-plus.