PY-13623 Behave: do not report empty test suite as a success

This commit is contained in:
Ilya.Kazakevich
2014-08-08 19:41:40 +04:00
parent 83f1dbd4dd
commit 1a652d7a16
+4 -1
View File
@@ -62,8 +62,11 @@ class BddRunner(object):
""""
Runs runner. To be called right after constructor.
"""
self.tc_messages.testCount(self._get_number_of_tests())
number_of_tests = self._get_number_of_tests()
self.tc_messages.testCount(number_of_tests)
self.tc_messages.testMatrixEntered()
if number_of_tests == 0: # Nothing to run, so no need to report even feature/scenario start. (See PY-13623)
return
self._run_tests()
def __gen_location(self, location):