Announcing TestNG 5.14

190 views
Skip to first unread message

Cédric Beust ♔

unread,
Aug 31, 2010, 9:43:02 AM8/31/10
to testng...@googlegroups.com
Hi everyone,

TestNG 5.14 is now available. It's a small release with just one new feature (the ability to run test suites in parallel) and a few bug fixes.

5.14
1020/08/28

Added: test suites can now be run in parallel with -suitethreadpoolsize
Fixed: @Listeners now aggregate through base classes
Fixed: ISuite was no longer serializable
Fixed: Injection was sometimes not working properly when used with @Parameters
Fixed: TESTNG-400: afterMethod was called after onTestFailure()
Fixed: "excludedgroups" was not working on the ant task because of a typo
Fixed: ant task error if <classfileset> is used with no classes (welex91)
Fixed: TESTNG-404: threaded tests fail due to use of non-threadsafe collections (Marcus Better)
Fixed: preserve-order was not preserving class order with dependent methods
Fixed: RetryAnalyzer wasn't working properly with factories
Fixed: The ant task was no longer supporting ',' for testclass

Eclipse:

Fixed: The plug-in wasn't running Groovy tests correctly (Andrew Eisenberg)
Fixed: TESTNG-402 [Eclipse Plug-In] NPE occurred when I run twice a custom "Run configuration" on a group


--
Cédric


Jailton Alkimin Louzada

unread,
Aug 31, 2010, 9:45:52 AM8/31/10
to testng...@googlegroups.com
Thanks Cédric!!

2010/8/31 Cédric Beust ♔ <ced...@beust.com>


--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To post to this group, send email to testng...@googlegroups.com.
To unsubscribe from this group, send email to testng-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.



--
At,

Jailton Alkimin Louzada
Cientista da Computação / PUC-GO
Telefones: (62) 9107-2618 / 3941-3483

www.jailtonalkiminlouzada.com
http://br.linkedin.com/in/jailtonlouzada

Carsten

unread,
Sep 1, 2010, 5:24:53 AM9/1/10
to testng-users
Thanks Cedric, in particular the preserve-order feature really is
helpful.

We have one problem with our upgrade to version 5.14 in combination
with inner classes, here is an example which demonstrates the issue:

// abstract test class test\innerclass\InnerClassTest.java

package test.innerclass;

import org.testng.annotations.Test;

public abstract class InnerClassTest
{
@Test
public void test()
{
// do nothing
}
}

// factory class test\innerclass\InnerClassTestFactory.java

package test.innerclass;

import org.testng.annotations.Factory;

public class InnerClassTestFactory
{
@Factory
public Object[] createTicketTest()
{
Object[] result = new Object[1];
result[0] = new InnerClassTest() { };
return result;
}
}

// xml suite

<suite name="testProject by packages">
<test verbose="2" name="test.innerclass" annotations="JDK">
<packages>
<package name="test.innerclass"/>
</packages>
</test>
</suite>

Which causes the following exception:
org.testng.TestNGException:
An error occurred while instantiating class
test.innerclass.InnerClassTestFactory$1. Check to make sure it can be
accessed/instantiated.
at org.testng.internal.ClassHelper.createInstance(ClassHelper.java:
349)
at org.testng.internal.ClassImpl.getDefaultInstance(ClassImpl.java:
82)


The problem is that there is a new null check in
ClassHelper.createInstance(Class<?>, Map<Class, IClass>, XmlTest,
IAnnotationFinder, IObjectFactory). Is it possible to remove this null
check or to make an exception for (anonymous) inner classes. We use
them a lot in our current tests.

Thanks,
Carsten

anil raju

unread,
Sep 1, 2010, 6:53:38 AM9/1/10
to testng...@googlegroups.com
Thanks a ton Cedric for the parallel suites implementation had been waiting for it.

Regards,

Anil Puliyeril




2010/8/31 Cédric Beust ♔ <ced...@beust.com>
Reply all
Reply to author
Forward
0 new messages