ptomato / jasmine-gjs

Jasmine for GJS
MIT License
20 stars 8 forks source link

Capture stdout and stderr of tests #3

Open ptomato opened 9 years ago

ptomato commented 9 years ago

The JUnit format allows <system-out> and <system-err> elements that report any output from stdout and stderr captured during a test or suite. The TAP reporter can output this as diagnostic lines.

ptomato commented 9 years ago

In Python: http://stackoverflow.com/a/22434262/172999

ptomato commented 8 years ago

Note, it also messes up the TAP reporter if you print to stdout in a test, since any non-TAP data should be prefixed with #.