| |
- AddCommandLineArgs(parser)
- ProcessCommandLineArgs(parser, args)
- Run(test, story_set, finder_options, results, max_failures=None)
- Runs a given test against a given page_set with the given options.
Stop execution for unexpected exceptions such as KeyboardInterrupt.
We "white list" certain exceptions for which the story runner
can continue running the remaining stories.
- RunBenchmark(benchmark, finder_options)
- Run this test with the given options.
Returns:
The number of failure values (up to 254) or 255 if there is an uncaught
exception.
- StoriesGroupedByStateClass(story_set, allow_multiple_groups)
- Returns a list of story groups which each contains stories with
the same shared_state_class.
Example:
Assume A1, A2, A3 are stories with same shared story class, and
similar for B1, B2.
If their orders in story set is A1 A2 B1 B2 A3, then the grouping will
be [A1 A2] [B1 B2] [A3].
It's purposefully done this way to make sure that order of
stories are the same of that defined in story_set. It's recommended that
stories with the same states should be arranged next to each others in
story sets to reduce the overhead of setting up & tearing down the
shared story state.
|