Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wtp-releng] Running JUnit's with -ea

That should work. Shouldn't cause any problems.  Should we turn this on for all junit testing? Even if so, why don't you give it a try first, and see how it goes.
I assume if the assert is caught that throws an exception which then shows up as a junit failure?
Sounds great ... maybe you could teach the rest of us if/when this is a good technique/method?


From: Cameron Bateman <CAMERON.BATEMAN@xxxxxxxxxx>
To: <wtp-releng@xxxxxxxxxxx>
Date: 08/23/2010 06:41 PM
Subject: [wtp-releng] Running JUnit's with -ea
Sent by: wtp-releng-bounces@xxxxxxxxxxx

We have recently discovered a bug that would have been caught much earlier if we had been running our JUnit tests with assertions enabled (-ea VM flag).  I want to add the -ea option to all of our JSF Tools JUnit tests.  I assume the best way to do this is to edit each test.xml  with an extraVMArgs property.

Are there any known issues with taking this approach?  Any reason not to proceed with this approach?


wtp-releng mailing list

Back to the top