hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dhruba borthakur (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-4297) Enable Java assertions when running tests
Date Wed, 19 Nov 2008 19:32:44 GMT

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

dhruba borthakur commented on HADOOP-4297:
------------------------------------------

Once this patch is commited, is there a way (through command line parameters) to run the unit
tests without assertions enabled? I agree with Doug that we should run unit tests without
assertions enabled for a build that is targeted as a release candidate.

> Enable Java assertions when running tests
> -----------------------------------------
>
>                 Key: HADOOP-4297
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4297
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: build
>    Affects Versions: 0.19.0, 0.20.0
>            Reporter: Yoram Kulbak
>             Fix For: 0.20.0
>
>         Attachments: HADOOP-4297.patch, HADOOP-4297.patch
>
>
> A suggestion to enable Java assertions in the project's build xml when running tests.
I think this would improve the build quality.
> To enable assertions add the following snippets to the JUnit tasks in build.xml:
> <assertions>
>      <enable />
> </assertions>
> --
> For example:
> <junit ... >
>      ...
>     <assertions>
>         <enable />
>     </assertions>
> </junit>
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message