Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text-based summary #7

Open
seeruk opened this issue May 5, 2017 · 3 comments
Open

Text-based summary #7

seeruk opened this issue May 5, 2017 · 3 comments

Comments

@seeruk
Copy link

seeruk commented May 5, 2017

First up, thanks for recommending this tool to me, Dave. It performs it's role very well!

The only gripe I have with it as it stands is that you either get a ton of output, or little to no output. Nothing much in-between. I'd be awesome if there was some output similar to what you get when you run something like $ go test -cover normally. There is of course $ courtney -v, but I sort of feel like the output you get from that is closer to what could be $ courtney -vv.

For example:

$ go test -cover (go list ./... | grep -v proto | grep -v vendor)
ok  	github.com/eidolon/console	0.004s	coverage: 96.6% of statements
ok  	github.com/eidolon/console/parameters	0.003s	coverage: 100.0% of statements
ok  	github.com/eidolon/console/specification	0.002s	coverage: 100.0% of statements

To me, this is useful for development when writing the tests, because I can just sit there with something watching every 5 seconds or so running the tests and get feedback about how my tests are going in an easy to parse way.

vs. well, I had to make a gist for it:

https://gist.github.com/SeerUK/0b256343d9d0ee2e8dff3b5e2eef4500

If I get a chance and can grok it, I might take a look at implementing this myself, but would also like your input on how you would see something like that being used (in terms of what flag you'd need to pass in).

@dave
Copy link
Owner

dave commented May 5, 2017

Sounds like a very good idea... I'd be happy for you to implement separate -v and -vv flags for verbose or extra-verbose... What exactly would we be removing from the -v version?

@seeruk
Copy link
Author

seeruk commented May 5, 2017

I think it'd pretty much just be showing the tests that passed. Perhaps also removing the go test command being run too, just to reduce it down to that list of either things that failed (if any), and a summary.

@dave
Copy link
Owner

dave commented May 5, 2017

OK agreed. Feel free to send a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants