[ http://jira.codehaus.org/browse/MNG-1087?page=comments#action_47788 ] 

Dave Sag commented on MNG-1087:
-------------------------------

just a note,

if you add 

export MAVEN_OPTS=-ea

to your .profile (or equiv)

then my tests pass.  this is only a partial workaround because anyone else 
wanting to make the tests pass will also need to add that environment variable. 
 it really should be on for tests by default if you are using java 1.4+ i feel, 
and easily switchable in the plugin config.

my 2c

dave


> need to enableassertions when running tests.
> --------------------------------------------
>
>          Key: MNG-1087
>          URL: http://jira.codehaus.org/browse/MNG-1087
>      Project: Maven 2
>         Type: Improvement
>   Components: maven-surefire-plugin, documentation
>  Environment: all
>     Reporter: Dave Sag
>     Priority: Critical

>
>
> My code relied heavily on the java1.4 assert command and my unit tests 
> explicitly test based on those assetions.
> but when i run m2 test the surefire plugin does not execute with the 
> -enableassertions turned on, so my tests fail.
> looking in the documentation for the surefire plugin on 
> http://maven.apache.org/maven2/plugins/maven-surefire-plugin/test-mojo.html I 
> see no way of setting that flag.
> could it please be added.  this is areal blocker for me.
> dave

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to