Use tee instead of redirection so test output is visible during execution while still being saved to file for analysis.