[
https://issues.apache.org/jira/browse/HBASE-11731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14095624#comment-14095624
]
Sean Busbey commented on HBASE-11731:
-------------------------------------
Alternatively, since we currently rely on test files being named like
"**/*_test.rb", we could document that and then make the test list a comma
separated list.
run just the admin tests:
{{mvn -Dtest=TestShell -Dshell.test=admin}}
run both the normal admin and security admin tests:
{{mvn -Dtest=TestShell -Dshell.test=admin,security_admin}}
run just the tests for shell itself:
Perhaps something like a regex to match the shell test files?:
run just the admin tests:
{{mvn -Dtest=TestShell -Dshell.test=hbase/admin_test.rb}}
run both normal admin and security admin tests:
{{mvn -Dtest=TestShell -Dshell.test=hbase/*admin_test.rb}}
run just the tests for the shell itself:
{{mvn -Dtest=TestShell -Dshell.test=commands,formatter,noninteractive,shell}}
That last one is uglier if I don't want to know the list ahead of time, since I
need to do a list and then a sed.
A disadvantage of this approach is that it presumes there won't be a file name
conflict in the test subdirectories.
> Add option to only run a subset of the shell tests
> --------------------------------------------------
>
> Key: HBASE-11731
> URL: https://issues.apache.org/jira/browse/HBASE-11731
> Project: HBase
> Issue Type: Improvement
> Components: build, shell
> Reporter: Sean Busbey
> Assignee: Sean Busbey
> Priority: Minor
> Labels: beginner
>
> Right now, contributors to the shell can limit testing to just the shell
> tests but there's no way to limit to just a subset of them.
> It would be nice if I could just run the test for the thing I'm changing.
--
This message was sent by Atlassian JIRA
(v6.2#6252)