matura icon indicating copy to clipboard operation
matura copied to clipboard

Stream test output to file.

Open jacobstr opened this issue 10 years ago • 0 comments

Detailed exception output doesn't occur until the end of the test run. Sometimes you want to stop test execution as soon as you notice failures with ctrl-c - but then you miss that detailed output at the very end.

One of my other solutions here is to simply stream the test results to a configurable data directory. Besides giving you historical information on local test runs, it will also capture the data gathered up until the point of failure.

It should be possible to play this back into the result printer. An interesting approach - instead of capturing the data as parsed by a particular reported, log the independent events. An interesting side effect is, given timestamps are injected, you could play back a test suite and get a feel for the 'dynamics' of your test execution. This matters more when you're doing things like API requests or expensive queries.

jacobstr avatar Nov 07 '14 20:11 jacobstr