[
https://issues.apache.org/jira/browse/BIGTOP-726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13468633#comment-13468633
]
Wing Yew Poon edited comment on BIGTOP-726 at 10/4/12 2:58 AM:
---------------------------------------------------------------
Attached is a patch. Two system properties are introduced in each test class:
<fully-qualified-class-name>.test_include and
<fully-qualified-class-name>.test_exclude. The values should be comma-separated
lists of the names of the scripts. The two properties are used in a mutually
exclusive fashion; if test_include is passed in, then it is used to filter in
the script(s) to run; else if test_exclude is passed in, it is used to filter
out the script(s) not to run. test_include is handy for running one or two
scripts. test_exclude is handy for excluding the most time-consuming test
case(s) (in the case of TestHiveSmokeBulk, the single biggest time hog takes 50
mins).
was (Author: wypoon):
Attached is a patch. Two system properties are introduced in each test
class: <fully-qualified-class-name>.test_include and
<fully-qualified-class-name>.test_exclude. The values should be comma-separated
lists of the names of the scripts. The two properties are used in a mutually
exclusive fashion; if test_include is passed in, then it is used to filter in
the script(s) to run; else if test_exclude is passed in, it is used to filter
out the script(s) not to run.
> make it possible to run HiveBulkScriptExecutor scripts selectively
> ------------------------------------------------------------------
>
> Key: BIGTOP-726
> URL: https://issues.apache.org/jira/browse/BIGTOP-726
> Project: Bigtop
> Issue Type: Improvement
> Components: Tests
> Affects Versions: 0.5.0
> Reporter: Wing Yew Poon
> Assignee: Wing Yew Poon
> Fix For: 0.5.0
>
> Attachments: BIGTOP-726.txt
>
>
> TestHiveSmokeBulk and IntegrationTestHiveSmokeBulk both use the
> HiveBulkScriptExecutor to run all the hive scripts in a particular resource
> directory hierarchy. The two tests are run with OrderedParameterized and we
> get a test per script. However, there is no way to run just one script, or
> some subset of the scripts. This capability is very useful as the hive
> scripts take a long time to run in total.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira