...
- Test Queries:
- queries/clientnegative - This directory contains the query files (.q files) for the negative test cases. These are run through the CLI classes and therefore test the entire query processor stack.
- queries/clientpositive - This directory contains the query files (.q files) for the positive test cases. Thesre are run through the CLI classes and therefore test the entire query processor stack.
- qureies/positive (Will be deprecated) - This directory contains the query files (.q files) for the positive test cases for the compiler. These only test the compiler and do not run the execution code.
- queries/negative (Will be deprecated) - This directory contains the query files (.q files) for the negative test cases for the compiler. These only test the compiler and do not run the execution code.
- Test Results:
- results/clientnegative - The expected results from the queries in queries/clientnegative.
- results/clientpositive - The expected results from the queries in queries/clientpositive.
- results/compiler/errors - The expected results from the queries in queries/negative.
- results/compiler/parse - The expected Abstract Syntax Tree output for the queries in queries/positive.
- results/compiler/plan - The expected query plans for the queries in queries/positive.
- Velocity Templates to Generate the Tests:
- templates/TestCliDriver.vm - Generates the tests from queries/clientpositive.
- templates/TestNegativeCliDriver.vm - Generates the tests from queries/clientnegative.
- templates/TestParse.vm - Generates the tests from queries/positive.
- templates/TestParseNegative.vm - Generates the tests from queries/negative.
Tables in the unit tests
Running unit tests
Note | ||
---|---|---|
| ||
As of version 0.13 Hive uses Maven instead of Ant for its build. The following instructions are not up to date. See the Hive Developer FAQ for updated instructions. |
...
Please refer to Hive User Group Meeting August 2009 Page 74-87.