stestr failing Command¶
Show the current failures in the repository.
-
stestr.commands.failing.
failing
(repo_type=’file’, repo_url=None, list_tests=False, subunit=False, stdout=<open file ‘<stdout>’, mode ‘w’>)[source]¶ Print the failing tests from the most recent run in the repository
This function will print to STDOUT whether there are any tests that failed in the last run. It optionally will print the test_ids for the failing tests if
list_tests
is true. Ifsubunit
is true a subunit stream with just the failed tests will be printed to STDOUT.Note this function depends on the cwd for the repository if repo_type is set to file and repo_url is not specified it will use the repository located at CWD/.stestr
Parameters: - repo_type (str) – This is the type of repository to use. Valid choices are ‘file’ and ‘sql’.
- repo_url (str) – The url of the repository to use.
- list_test (bool) – Show only a list of failing tests.
- subunit (bool) – Show output as a subunit stream.
- stdout (file) – The output file to write all output to. By default this is sys.stdout
Return return_code: The exit code for the command. 0 for success and > 0 for failures.
Return type: int