okumin commented on code in PR #45: URL: https://github.com/apache/hive-site/pull/45#discussion_r2017960826
########## content/docs/latest/howtocontribute_27362107.md: ########## @@ -165,42 +143,7 @@ To test a particular component of Hive: #### Query Unit Test -If the new feature can be tested using a Hive query in the command line, we just need to add a new `*.q` file and a new `*.q.out` file. - -If the feature is added in `ql` (query language): - -* Add a new `XXXXXX.q` file in `ql/src/test/queries/clientpositive`. (Optionally, add a new `XXXXXX.q` file for a query that is expected to fail in `ql/src/test/queries/clientnegative`.) -* Run `mvn test -Dtest=TestMiniLlapLocalCliDriver -Dqfile=XXXXXX.q -Dtest.output.overwrite=true`. This will generate a new `XXXXXX.q.out` file in `ql/src/test/results/clientpositive`. - + If you want to run multiple .q files in the test run, you can specify comma separated .q files, for example `-Dqfile="X1.q,X2.q"`. You can also specify a Java regex, for example `-Dqfile_regex='join.*'`. (Note that it takes Java regex, i.e., `'join.*`'`` and not `'join*'`.) The regex match first removes the `.q` from the file name before matching regex, so specifying `join*.q` will not work. - -If the feature is added in `contrib`: - -* Do the steps above, replacing `ql` with `contrib`, and `TestCliDriver` with `TestContribCliDriver`. - -See the FAQ "[How do I add a test case?]({{< ref "#how-do-i-add-a-test-case?" >}})" for more details. - -#### Beeline Query Unit Test Review Comment: Do we want to keep this one? If yes, I will copy it to the new page. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org