Function Catch::makeStream

Function Documentation

auto Catch::makeStream(std::string const &filename) -> Detail::unique_ptr<IStream>

Creates a stream wrapper that writes to specific file.

Also recognizes 4 special filenames

  • - for stdout

  • stdout for stdout

  • stderr for stderr

  • debug for platform specific debugging output

Throws:

if – passed an unrecognized %-prefixed stream