nestorsalceda / mamba

The definitive testing tool for Python. Born under the banner of Behavior Driven Development (BDD).
http://nestorsalceda.github.io/mamba
MIT License
520 stars 64 forks source link

Make progress formatter show its output immediately #124

Open kfischer-okarin opened 5 years ago

kfischer-okarin commented 5 years ago

When I use the default progress formatter my terminal will output nothing unless a newline is included.

Maybe that's a problem of my terminal settings or my OS (using MacOS).... but other test tools work just fine in that regard. (Ruby's RSpec for example).

I fixed that problem by wrapping the puts method of clint (which seems by the way not to be maintained at all anymore - the GitHub repository is archived) and always flushing the stdout stream

nestorsalceda commented 5 years ago

Going to check this stuff this weekend.

Thanks for your patches and your patience.