[ 
https://issues.apache.org/jira/browse/DRILL-5318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15983138#comment-15983138
 ] 

ASF GitHub Bot commented on DRILL-5318:
---------------------------------------

Github user paul-rogers commented on the issue:

    https://github.com/apache/drill/pull/788
  
    One of the key reasons for creating tests is that they show how to use an 
API. In this case, the associated tests show how to use the row set 
abstractions to create a schema, populate a row set and so on. Please also see 
the package-info.java file for Javadoc that provides an overview.
    
    Please let me know if you want to use the test framework. If so, I'd like 
to work with you to figure out what additional documentation and/or examples 
would be useful.
    
    This PR is a dependency on the "main show": a PR with refactored sort code 
and complete sort unit tests. That PR will be submitted this week now that all 
the prerequisites are in master. That will demonstrate now to use the framework 
to create a suite of unit tests. I can point to my personal repo if if it would 
be helpful to preview that code.


> Create a sub-operator test framework
> ------------------------------------
>
>                 Key: DRILL-5318
>                 URL: https://issues.apache.org/jira/browse/DRILL-5318
>             Project: Apache Drill
>          Issue Type: Improvement
>          Components: Tools, Build & Test
>    Affects Versions: 1.11.0
>            Reporter: Paul Rogers
>            Assignee: Paul Rogers
>              Labels: ready-to-commit
>             Fix For: 1.11.0
>
>         Attachments: Sub-OperatorTestFramework.pdf
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to