onsi / ginkgo

A Modern Testing Framework for Go
http://onsi.github.io/ginkgo/
MIT License
8.09k stars 643 forks source link

Make it possible to flush output via newline in between tests #1347

Closed onsi closed 1 month ago

onsi commented 5 months ago

Some CI systems only flush output when a newline is observed. This makes it hard to see Ginkgo's progress when running without -v. A new mode that forces Ginkgo to emit a newline between each spec report (even if that report is just "o") would resolve this.

/cc @pohly

pohly commented 5 months ago

This is the gist of it. Note that we haven't actually verified that a newline will help, but it seems likely.

While you are at it, a mode where not even the o or S gets printed might also be useful. When I run -focus=one-particular-test, the screen fills up with S characters simply because we have so many tests in the Kubernetes E2E suite.

pohly commented 5 months ago

Or make it so that just the S gets skipped (pun intended). The o is useful when running a few tests.

onsi commented 1 month ago

sigh - it only took 3 months but --silence-skips and --force-newlines are both now available on master. i'll be cutting a release shortly. please give it a try when you have time and lemme know if it helps.

onsi commented 1 month ago

2.18.0 is out and includes this

onsi commented 1 month ago

woops - didn't mean to close it!

pohly commented 1 month ago

This works as expected and does indeed help with watching progress in Prow. Thanks!

I think this can be closed.

onsi commented 1 month ago

wonderful, glad to hear it!