stestr slowest Command

Show the longest running tests in the repository.

stestr.commands.slowest.slowest(repo_type='file', repo_url=None, show_all=False, stdout=<open file '<stdout>', mode 'w'>)[source]

Print the slowest times from the last run in the repository

This function will print to STDOUT the 10 slowests tests in the last run. Optionally, using the show_all argument, it will print all the tests, instead of just 10. sorted by time.

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.
  • show_all (bool) – Show timing for all tests.
  • 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