l.t.u.retest : module documentation

Part of lp.testing.utilities

Given an error report, run all of the failed tests again.

For instance, it can be used in the following scenario:

  % bin/test -vvm lp.registry | tee test.out
  % # Oh nos!  Failures!
  % # Fix tests.
  % bin/retest test.out

Or, when run without arguments (or if any argument is "-"), a test
report (or a part of) can be piped in, for example by pasting it:

  % bin/retest
  Tests with failures:
     lib/lp/registry/browser/tests/sourcepackage-views.txt
     lib/lp/registry/tests/../stories/product/xx-product-package-pages.txt
  Total: ... tests, 2 failures, 0 errors in ...
Function decolorize Remove all ANSI terminal color escapes from text.
Function get_test_name Get the test name of a failed test.
Function gen_test_lines Undocumented
Function gen_tests Undocumented
Function extract_tests Undocumented
Function run_tests Given a set of tests, run them as one group.
Function main Undocumented
def decolorize(text):
Remove all ANSI terminal color escapes from text.
def get_test_name(test):
Get the test name of a failed test.

If the test is part of a numbered story, e.g. 'stories/gpg-coc/01-claimgpgp.txt', then return the directory name since all of the stories must be run together.

def gen_test_lines(lines):
Undocumented
def gen_tests(test_lines):
Undocumented
def extract_tests(lines):
Undocumented
def run_tests(tests):
Given a set of tests, run them as one group.
def main():
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.