Announcing TestNG 4.5

Discussions

News: Announcing TestNG 4.5

  1. Announcing TestNG 4.5 (8 messages)

    The TestNG team is happy to announce the immediate availability of TestNG 4.5.

    This release contains a lot of bug fixes and a few new features (JAAS support, for example). It also includes the first phase of Distributed TestNG, a work in progress designed to transparently distribute tests on many machines and collect their results.

    Announcement:

    http://beust.com/weblog/archives/000361.html

    Details on Distributed TestNG:

    http://beust.com/weblog/archives/000362.html

    Threaded Messages (8)

  2. Announcing TestNG 4.5[ Go to top ]

    Congratulations!

    Distributed testing looks like a good and useful feature.

    Also, I was wondering if you had chance to think about or implement multi-threaded test case execution.

    I have outlined these requirements in the past here:
    http://www.theserverside.com/news/thread.tss?thread_id=30394#148485
  3. Announcing TestNG 4.5[ Go to top ]

    Congratulations!Distributed testing looks like a good and useful feature.Also, I was wondering if you had chance to think about or implement multi-threaded test case execution.I have outlined these requirements in the past here:http://www.theserverside.com/news/thread.tss?thread_id=30394#148485
    Wow, that was more than a year ago. You are resilient :-)

    Yes, improved multi-thread testing is something that comes up on and off. Recently, somebody asked if the invocationCount support could be made multi-threaded:

    @Test(invocationCount = 1000, threadPoolSize = 10)
    public void sendHttpRequest() { }

    ... would invoke that method a thousand times in a pool of 10 threads (currently, invocationCount is always single threaded).

    TestNG doesn't support this currently -- only threaded invocations at the suite level -- but it's definitely something I am thinking about.

    --
    Cedric
  4. Announcing TestNG 4.5[ Go to top ]

    Recently, somebody asked if the invocationCount support could be made multi-threaded:

    @Test(invocationCount = 1000, threadPoolSize = 10)
    public void sendHttpRequest() { }

    ... would invoke that method a thousand times in a pool of 10 threads (currently, invocationCount is always single threaded).
    Yes something like that would be great. The only one thing that needs to be clarified: "pool of 10 threads" from your example would mean that 10 threads will be created and run *concurrently* sendHttpRequest() test case.
    TestNG doesn't support this currently -- only threaded invocations at the suite level -- but it's definitely something I am thinking about.-- Cedric

    Thanks for taking this request into consideration! Even a year later from its original proposal - better than never... ;)

    I think it will benefit testNG users a lot when multi-thread testing comes into play. This way it will be relatively easy to set up tiny unit test cases that check some methods of the classes that are supposed to be thread safe.
    I hope it will make it into the next release.

    Thanks in advance,
    Ruslan
  5. Announcing TestNG 4.5[ Go to top ]

    Great. We have been using TestNG for Seam and are loving it. I'll go upgrade now :-)
  6. Maven 2 support?[ Go to top ]

    Any work going on to provide a Maven2 plugin? At the web you only mention Maven 1 support.
  7. Maven 2 support?[ Go to top ]

    Any work going on to provide a Maven2 plugin? At the web you only mention Maven 1 support.

    more information about the maven 2 plugin can be found at http://groups.google.com/group/testng-users/browse_thread/thread/cc74394185de2954/f1eb48edc3ed3b1e#f1eb48edc3ed3b1e
  8. Maven 2 support?[ Go to top ]

    Any work going on to provide a Maven2 plugin? At the web you only mention Maven 1 support.
    Actually, if you look at the HTML source, you will notice that the Maven 2 documentation is already there but commented out :-)

    I commented it out right now because even though the plug-in is complete, we are waiting for the approval of a few check-ins in the Maven/SureFire codebase. As soon as these changes are accepted, I'll restore the documentation.

    So the answer is: yes, there is a TestNG Maven 2 plug-in, and it will be available very soon.

    --
    Cedric
  9. Announcing TestNG 4.5[ Go to top ]

    I've been enjoying TestNG a lot with RIFE's out-of-container testing support. We test all our webapps like this now and it's really a great combination.
    Thanks, Cedric!