aiiie / cram

Functional tests for command line applications
GNU General Public License v2.0
199 stars 51 forks source link

Add the '-e' / '--no-err-files' option. #11

Open akopytov opened 8 years ago

akopytov commented 8 years ago

In some cases TESTDIR is read-only, so storing an .err file on a test failure is impossible which makes Cram itself fail.

For example, if Cram is invoked as a part of 'make distcheck', which deliberately runs a VPATH build with 'srcdir' and all its contents made read-only, any test failure leads to Cram failing with a Python traceback in the test log. Having a diff file instead would still be handy to diagnose the failure.

With the new '-e' / '--no-err-files' option Cram does not try to create .err files on test failures, but still prints the diff.