grosser / forking_test_runner

Run every test in a fork to avoid pollution and get clean output per test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fold in stderr?

zenspider opened this issue · comments

See https://travis-ci.com/github/zendesk/zendesk/jobs/352443847 for the problem I'm seeing. Look for models/category_test.rb... the stderr output is in the test/models/account/cleanup_test.rb section (by happenstance).

I'd like to add $stderr.reopen(wpipe) to the line below to capture and report both IO streams so they both get dumped to the file being run w/ proper locking. https://github.com/grosser/forking_test_runner/blob/master/lib/forking_test_runner.rb#L255

The only other thing I can think of is switching to a popen3("-") + select-loop type of situation and nobody wants to deal with that...