Open devonestes opened 5 years ago
I like this one!
I can put the PR together if you are!
I like this one!
I somehow missed this one. Sure thing, this could be amazingly useful!
@devonestes you got the green light!
For this specific case, we actually re-wrote how capture_io works to make it async safe in 1.10! If there are other ideas, though, then this might still be a good idea.
There are some things that you can do in a test that's run asynchronously that you shouldn't do, like using
ExUnit.CaptureIO.capture_io/2
with a device other than:stdio
. It would be nice if Credo warned you that you're doing something that is potentially going to result in flaky or incorrect tests.Sound like something that you'd be interested in having? I can put the PR together if you are!