tobiko/tobiko/tests/functional
Federico Ressi b303fa415e Run nested test cases as sub-tests
Allow to run all test cases in a folder that is on the PYTHONPATH.
The function tobiko.run.run_tests will perform below operations:
 - recursively look for all python modules matching 'test_*.py'
   in a given directory
 - create a TestSuite out of all subclasses of unittest.TestCase
   found on discovered modules
 - run the test suite, recording the result in on a TestResult class
   instance
 - eventually (if check parameter is not False as by default) it also
   forward test errors and failures to the test case that called it

Example of use:
  import unittest
  from tobiko import run

  class MyFaultsTest(unittest.TestCase):

    def run(result):
      result_before = run_tests('tobiko/tests/sanity')
      try:
        super().run(result)
      finally:
        result_after = run_tests('tobiko/tests/sanity')
        # ... eventually compare errors and failures between
        # result_before and result_after

    def test_some_failure(self):
      ...

Change-Id: I22b14a40ed6b02d62e486e138f6d0172bbc9f92c
2022-07-27 10:14:37 +00:00
..
common Write background process tool 2022-02-25 07:19:21 +00:00
docker Avoid getting container details when listing containers 2021-07-23 12:01:57 +02:00
openstack Add functions to list stack and stack resources 2022-07-06 20:22:14 +00:00
podman Remove obsolete required_setup_fixture function 2022-02-15 12:40:47 +00:00
run Run nested test cases as sub-tests 2022-07-27 10:14:37 +00:00
shell Source /etc/profile before importing env variables from remote host 2022-07-20 14:06:20 +00:00
shiftstack Test shiftstack tools only with active scifstack nodes 2022-07-20 09:49:43 +00:00
tripleo Refactor Keystone integration tools 2022-07-20 16:02:15 +00:00
__init__.py Move shell test cases to functional package. 2019-04-25 14:20:44 +02:00