Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-5318

Create a sub-operator test framework

    XMLWordPrintableJSON

    Details

      Description

      Drill provides two unit test frameworks for whole-server, SQL-based testing: the original BaseTestQuery and the newer ClusterFixture. Both use the TestBuilder mechanism to build system-level functional tests that run queries and check results.

      Jason provided an operator-level test framework based, in part on mocks:

      As Drill operators become more complex, we have a crying need for true unit-level tests at a level below the whole system and below operators. That is, we need to test the individual pieces that, together, form the operator.

      This umbrella ticket includes a number of tasks needed to create the sub-operator framework. Our intention is that, over time, as we find the need to revisit existing operators, or create new ones, we can employ the sub-operator test framework to exercise code at a finer granularity than is possible prior to this framework.

        Attachments

        1. Sub-OperatorTestFramework.pdf
          138 kB
          Paul Rogers

          Issue Links

            Activity

              People

              • Assignee:
                paul-rogers Paul Rogers
                Reporter:
                paul-rogers Paul Rogers
                Reviewer:
                Sorabh Hamirwasia
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: