redirecting the unittests error output

John Colvin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jan 14 10:57:03 PST 2015


On Wednesday, 14 January 2015 at 18:50:04 UTC, ref2401 wrote:
> How can i redirect the unittests error output to a file?

You redirect stderr to a file using whatever tools your shell 
provides you. In anything related to unix sh you would do 
something like this:

./run_unittests 2>errorFile

where 2 stands for stderr (1 is for stdout). This would create a 
new file (or overwrite an existing file) called errorFile with 
whatever run_unittests prints to stderr, which would include 
unittest errors.


More information about the Digitalmars-d-learn mailing list