On Mon, Jul 7, 2014 at 4:46 PM, Krishantha Samaraweera <[email protected]>
wrote:

> Hi Ruchira,
>
> This is not going to be a simple plugin to implement.This plugin will act
> as a test executor and report generator, and we need to integrate code
> coverage generation as well. Maven already provide sure-fire plug for test
> execution and TestNG and Emma provide other capabilities. So writing a new
> plugin from the scratch will be more work and we are going to ignore
> existing plugins and test framework capabilities. I think we are trying to
> reinvent the wheel
>
Sorry Krishantha, you have got it wrong :). I never said to reinvent the
wheel and I know it is useless.

To clarify what I meant, assume the configuration that everyone put in
their pom.xml asking TestNG/Emma to execute the test class that they
wrote(Let's say it as X and everyone will have to write the same class).
Instead of that, your test framework jar bundles the class(X) and you write
a maven plugin, which allows someone to ask TestNG/Emma to execute tests
with your bundled class(X) by just specifying maven plugin configuration in
their pom.xml

> again.
>
> Adding one single test class just by extending a class provided by test
> framework doesn't going to be overkill.
>
> Is there a way to discover all jaggery applications hosted in carbon
> server instance? if jaggery app discovery is available, then we can use
> testNG listener to run all unit tests in those Jaggery apps even without
> writing single java class in product test modules.
>
+1. If you list down all the directories available within
repository/deployment/server/jaggeryapps directory, those are the Jaggery
apps available.

>
> Thanks,
> Krishantha.
>
>
>
> On Mon, Jul 7, 2014 at 4:31 PM, Ruchira Wageesha <[email protected]> wrote:
>
>> Hi Dimuthu,
>>
>> With this approach, everyone who wants to test Jaggery apps will have to
>> write the same Java code by extending your base class, which is redundant.
>> Hence, IMO, the best options would be to wrap your base class and write a
>> maven plugin. So, what other's will have to do is, just add that
>> configuration in the pom and tests will be executed automatically without
>> writing any Java code.
>>
>> /Ruchira
>>
>>
>> On Mon, Jul 7, 2014 at 3:39 PM, Dimuthu De Lanerolle <[email protected]>
>> wrote:
>>
>>> Hi,
>>>
>>> I have started working on this. Our plan is to write a common test class
>>> inside carbon-platform-integration-utils module which product teams can
>>> extend and start running jaggery tests residing inside
>>> [PRODUCT_HOME]/repository/deployment/server/jaggeryapps/xxx/test directory.
>>> Invocation of each test endpoint will be treated as a separate test case
>>> resulting number of test cases to be executed will get equal to number of
>>> test endpoints to be invoked.
>>>
>>> Regards
>>>
>>> Dimuthu De Lanerolle
>>> Software Engineer
>>> WSO2 Inc.
>>> lean . enterprise . middlewear.
>>> http://wso2.com/
>>> Tel. : +94 11 2145345  Fax : +94 11 2145300  email : [email protected]
>>>
>>>
>>
>>
>> --
>>
>> *Ruchira Wageesha**Associate Technical Lead*
>> *WSO2 Inc. - lean . enterprise . middleware |  wso2.com <http://wso2.com>*
>>
>> *email: [email protected] <[email protected]>,   blog:
>> ruchirawageesha.blogspot.com <http://ruchirawageesha.blogspot.com>,
>> mobile: +94 77 5493444 <%2B94%2077%205493444>*
>>
>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>



-- 

*Ruchira Wageesha**Associate Technical Lead*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com <http://wso2.com>*

*email: [email protected] <[email protected]>,   blog:
ruchirawageesha.blogspot.com <http://ruchirawageesha.blogspot.com>,
mobile: +94 77 5493444*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to