Skip to content

Commit

Permalink
Update docstrings of new methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-collingham committed Mar 13, 2020
1 parent b2725e2 commit ec71472
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions testplan/testing/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -786,16 +786,17 @@ def dry_run(self):

def run_testcases_iter(self, testsuite_pattern="*", testcase_pattern="*"):
"""
For a Test to be run interactively, it must implement this method.
It is expected to run tests iteratively and yield a tuple containing
a testcase report and the list of parent UIDs required to merge the
testcase report into the main report tree.
If it is not possible or very inefficient to run individual testcases
in an iteratie manner, this method may instead run all the testcases
in a batch and then return an iterator for the testcase reports and
parent UIDs.
Runs testcases as defined by the given filter patterns and yields
testcase reports. A single testcase report is made for general checks
of the test process, including checking the exit code and loggin stdout
and stderr of the process. Then, testcase reports are generated from
the output of the test process.
For efficiency, we run all testcases in a single subprocess rather than
running each testcase in a seperate process. This reduces the total
time taken to run all testcases, however it will mean that testcase
reports will not be generated until all testcases have finished
running.
:param testsuite_pattern: Filter pattern for testsuite level.
:type testsuite_pattern: ``str``
Expand Down Expand Up @@ -838,6 +839,6 @@ def run_testcases_iter(self, testsuite_pattern="*", testcase_pattern="*"):
def test_command_filter(self, testsuite_pattern, testcase_pattern):
"""
Return the base test command with additional filtering to run a
specific set of testcases.
specific set of testcases. To be implemented by concrete subclasses.
"""
raise NotImplementedError

0 comments on commit ec71472

Please sign in to comment.