Add -- --nocapture to the test command for prints in tests to display.
-- --nocapture
So the full command becomes cargo test -- --nocapture.
cargo test -- --nocapture