Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-33665

Tests run by hooks should be TestCase subclasses

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.7.3
    • Testing Infrastructure
    • None
    • Fully Compatible
    • TIG 2018-03-12

    Description

      When hooks run dynamic tests they handle the calls to report methods (startTest(), endTest(), etc.), the execution of the tests and error handling. Several hooks have implemented the same logic in similar but not identical ways.

      A subclass of TestCase specific to dynamic tests will be added to handle this logic. Each hook will then be updated to have their own TestCase implementations.

      To support these changes, the TestCase code that is specific to process based tests (i.e. _execute(), _make_process()) will be moved to a subclass.

      Attachments

        Issue Links

          Activity

            People

              yves.duhem Yves Duhem
              yves.duhem Yves Duhem
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: