[Carbon-dev] [Architecture] Migrate to TestNG

Krishantha Samaraweera krishantha at wso2.com
Wed Dec 14 02:13:37 EST 2011


On Tue, Dec 13, 2011 at 7:56 PM, Afkham Azeez <azeez at wso2.com> wrote:

> Folks,
> I was playing around a bit with TestNG (
> http://testng.org/doc/documentation-main.html#introduction) & it seems to
> be the way to go for the type of integration testing we are doing. This may
> involve major changes at the platform testing level but will be worth the
> investment.
>
> Here are some articles that compare TestNG with JUnit4. We are using JUnit
> 3.
>
> http://www.mkyong.com/unittest/junit-4-vs-testng-comparison/
> http://nelz.net/2010/10/06/testng-vs-junit4/
>
> I had a chat with Krishantha & he too agrees that TestNG is more suitable
> for the type of test automation we do. Does anybody have any concerns
> regarding this move?
>

+1, Just gone though the TestNG feature list. OOB support for, parallel
tests and rerunning failed test features are more promising. Selenium
framework also supports TestNG.

Junit 4.8 has introduced test grouping by using test categories [1]. But
this feature is undocumented and seems lot of work. Even I cannot find much
references on web.

You can find the feature matrix of Surefire plugin at [2] which has
extended support for TestNG [3].

Thanks,
Krishantha.

[1]http://www.wakaleo.com/blog/267-grouping-tests-using-junit-categories
[2]http://maven.apache.org/plugins/maven-surefire-plugin/featurematrix.html
[3]http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html

>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * <http://www.apache.org/>**
> email: **azeez at wso2.com* <azeez at wso2.com>* cell: +94 77 3320919
> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
>
>
> _______________________________________________
> Architecture mailing list
> Architecture at wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.wso2.org/pipermail/carbon-dev/attachments/20111214/7d01a7c9/attachment.html>


More information about the Carbon-dev mailing list