haf / expecto

A smooth testing lib for F#. APIs made for humans! Strong testing methodologies for everyone!
Apache License 2.0
663 stars 96 forks source link

Progress log does not flush on test completion #314

Closed et1975 closed 5 years ago

et1975 commented 5 years ago

Upgraded from 8.6.0 to 8.10.0 and see that default console log does not flush anymore while the test are running. Only the spinner is visible until a failure occurs, then everything up to that point is flushed until the next error or the termination.

AnthonyLloyd commented 5 years ago

I think this is by design. I guess it could be changed or configured.

Do you have test output you want to see? How do you produce the output?

et1975 commented 5 years ago

I'm talking about messages produced by Expecto itself, this kind of logs:

[14:23:21 DBG] group/test starting... [14:23:26 DBG] group/test passed in 00:00:05.0650000.

Used to appear as things happened, now... only on error or termination.

AnthonyLloyd commented 5 years ago

Ah, with --debug. That sounds reasonable.

AnthonyLloyd commented 5 years ago

I've fixed this. It is meant to do this but there is some hairy logging logic.

@et1975 Let me know if these 2 changes are urgent or not for you. I may release soon or in the next week or so.

et1975 commented 5 years ago

Next week would be great, thank you so much!

AnthonyLloyd commented 5 years ago

released in v8.10.1