'Return code (integer) of test execution.
By default returns the number of failed critical tests (max 250),
but can be :func:`configured <configure>` to always return 0.'

@property
def return_code(self):

    if self._status_rc:
        return min(self.suite.statistics.critical.failed, 250)
    return 0
