[ 
https://issues.apache.org/jira/browse/HADOOP-10854?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14639708#comment-14639708
 ] 

Allen Wittenauer commented on HADOOP-10854:
-------------------------------------------

Yeah, basically:

{{mvn test -Pshelltest -DskipTests}} will only run the shelltest.

{[mvn test -Pshelltest}} will only run the unit tests and not both.

I've got an updated version of this patch that:

a) won't fail maven if bats isn't installed
b) moves the phase for shelltest to process-test-classes.  This gets run after 
test-compile and before test.  This fixes the {[mvn test -Pshelltest}}  case, 
but it's still less than ideal.

> unit tests for the shell scripts
> --------------------------------
>
>                 Key: HADOOP-10854
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10854
>             Project: Hadoop Common
>          Issue Type: Test
>          Components: scripts
>    Affects Versions: 3.0.0
>            Reporter: Allen Wittenauer
>            Assignee: Allen Wittenauer
>              Labels: scripts
>         Attachments: HADOOP-10854.00.patch, HADOOP-10854.01.patch, 
> HADOOP-10854.02.patch, HADOOP-10854.03.patch
>
>
> With HADOOP-9902 moving a lot of the core functionality to functions, we 
> should build some unit tests for them.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to