Have you tried launching maven with the java -ea switch? I don't
think you can control these switches with surefire or any of the
other maven plugins as far as I can tell, so I think you have to
configure your own vm as best as you can.
I've just had a look at m2 shell script and I think
Hi Ashley,
in my humble opinion assertsenabled
should be the default for running *any* unit tests. it seems a litle
crazy that getting my unit tests to pass would require a custom MAVEN_OPTS
setting.
i have filed an 'imporvement' issue
in jira http://jira.codehaus.org/browse/MNG-1087
so with
Re: [m2] asserts aren't recognized with
surefire
Have you tried launching maven with the java -ea switch?
I don't
think you can control these switches with surefire or any of the
other maven plugins as far as I can tell, so I think you have to
configure your own vm as best as you can
You should know that what I've been suggesting is also in my humble
opinion - I don't know for sure that there isn't an 'easy' way to
configure the vm. If not them maybe you could expand your jira issue
to include vm configuration in general rather than just for enabling
asserts - maybe