[infinispan-dev] FYI: IntelliJ 11 and TestNG

Galder Zamarreño galder at redhat.com
Fri Dec 16 06:59:53 EST 2011


On Dec 15, 2011, at 11:40 PM, Manik Surtani wrote:

> Something fishy with IntelliJ 11 which has had me chasing my tail for a while now - when running TestNG tests from the IDE, the JVM IntelliJ launches does *not* have the -ea flag on (previous versions did!)  This means that assertions that fail *don't* cause a test to fail, giving you false positives.

That happened to me before with Eclipse.

> To fix this, I added -ea to the default set of VM options when running TestNG tests.

That's why I always add the following as default: -Djava.net.preferIPv4Stack=true -Djgroups.bind_addr=127.0.0.1 -ea  

> Note that running tests via Maven are not affected and in fact this is how I spotted the issue.
> 
> Cheers
> Manik
> --
> Manik Surtani
> manik at jboss.org
> twitter.com/maniksurtani
> 
> Lead, Infinispan
> http://www.infinispan.org
> 
> 
> 
> 
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev

--
Galder Zamarreño
Sr. Software Engineer
Infinispan, JBoss Cache




More information about the infinispan-dev mailing list