In bats, when you print to stdout during a test, if the test fails bats will show the output that was generated. If everything succeeds it hides the output.