From 3151dd7c58ebb8e6e180bea300949ba1188318a3 Mon Sep 17 00:00:00 2001 From: hellmanj Date: Wed, 18 Mar 2015 15:34:17 -0400 Subject: [PATCH] add error message when tests fail --- tests/basetestcase.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/basetestcase.py b/tests/basetestcase.py index baccf77..18746e8 100755 --- a/tests/basetestcase.py +++ b/tests/basetestcase.py @@ -229,8 +229,9 @@ def assert_run(self, run, returncode = run.returncode is_robot = "pybot" in run.cmd self.assertEquals(expected_returncode, returncode, - "Return code was %s, expecting %s with the command: '%s'" % ( - returncode, expected_returncode, run.cmd)) + "Return code was %s, expecting %s with the command: '%s'\n" + "The message was:\n%s\n" % ( + returncode, expected_returncode, run.cmd, run.output)) if expected_tests_ran: self.assertTrue("Ran %s test" % expected_tests_ran in run.output, "Didn't get %s tests ran when " "running '%s'" % (