Exemple #1
0
         to_stdout(
             *["Primary", "  ParametrizedSuite"]
             + [
                 "    test_method <val={}>".format(idx)
                 for idx in range(listing.MAX_TESTCASES)
             ]
             + [
                 "    ... {} more testcases ...".format(
                     NUM_TESTS - listing.MAX_TESTCASES
                 )
             ]
         ),
     ),
     # Trimmed patterns
     (
         listing.PatternLister(),
         to_stdout(
             *["Primary", "  Primary::ParametrizedSuite"]
             + [
                 "    Primary::ParametrizedSuite"
                 "::test_method <val={}>".format(idx)
                 for idx in range(listing.MAX_TESTCASES)
             ]
             + [
                 "    ... {} more testcases ...".format(
                     NUM_TESTS - listing.MAX_TESTCASES
                 )
             ]
         ),
     ),
 ],
# Sample output:

# Primary
# ..Alpha
# ....test_a
# ....test_b
# ...

# Like NameLister, but does not trim testcases. May produce
# large output in case of parametrization

expanded_name_lister = listing.ExpandedNameLister()

# Pattern lister, lists tests in a format that is compatible with
# `--patterns` / `--tags` / `--tags-all` arguments
pattern_lister = listing.PatternLister()

# Sample output:

# Primary
# ..Primary:Alpha
# ....Primary:Alpha:test_a
# ....Primary:Alpha:test_b  --tags server
# ...

# Like Pattern lister, but does not trim testcases. May produce
# large output in case of parametrization

expanded_pattern_lister = listing.ExpandedPatternLister()

# Count lister, just lists top level test instances with the number of