...
Code Block | ||
---|---|---|
| ||
cd itests mvn test -Dtest.excludes.additional='**/Test*CliDriver.java' |
How do I run the clientpositive/clientnegative unit tests?
All of the below require that you have previously run ant package
.
To run clientpositive tests
Code Block |
---|
ant -Dtestcase=TestCliDriver test
|
...
MVN:
...
Code Block |
---|
cd itests/qtest
mvn test -Dtest=TestCliDriver
|
...
To run a single clientnegative test alter1.q
...
Code Block |
---|
ant -Dtestcase=TestNegativeCliDriver -Dqfile=alter1.q test
|
MVN:
Code Block |
---|
cd itests/qtest
mvn test -Dtest=TestNegativeCliDriver -Dqfile=alter1.q
|
...
To run all of the clientpositive tests that match a regex, for example the partition_wise_fileformat tests
...
Code Block |
---|
ant -Dtestcase=TestCliDriver -Dqfile_regex=partition_wise_fileformat.* test
|
...
MVN:
Code Block |
---|
cd itests/qtest
mvn test -Dtest=TestCliDriver -Dqfile_regex=partition_wise_fileformat.*
|
To run a single contrib test alter1.q and overwrite the result file
...
Code Block | ||
---|---|---|
| ||
ant -Dtestcase=TestContribCliDriver -Dqfile=alter1.q -Doverwrite=true test
|
...
MVN:
...
Code Block | ||
---|---|---|
| ||
cd itests/qtest
mvn test -Dtest=TestContribCliDriver -Dqfile=alter1.q -Dtest.output.overwrite=true
|
To run a single test groupby1.q and output detailed information during execution
Code Block | ||
---|---|---|
| ||
ant -Dtestcase=TestCliDriver -Dqfile=groupby1.q -Dtest.silent=false test
|
...
As of Hive 0.11.0+ you can cut down the total build time by specifying that only the ql module needs to rebuild. For example, run all the partition_wise_fileformat tests
...
Code Block |
---|
ant -Dmodule=ql -Dtestcase=TestCliDriver -Dqfile_regex=partition_wise_fileformat.* test |
...