You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Michael Tarantino <ta...@adobe.com> on 2014/07/04 11:29:15 UTC

Combining Sling performance and Sling Junit

Hi,

Following the ticket  https://issues.apache.org/jira/browse/SLING-3708, I've implemented a first prototype of the combination between the server-side Junit test and the performance testing utilities. The source are available on https://github.com/mtarantino/sling.
Here a small description of what has been done in this fork :
- Import of the performances classes within sling junit
- Implementation of a field annotation @TestParameter which injects a value in a class member via POST parameters (syntax: [package].[classname].[class member name]=[value])
- Adding performance information in JSON format for performance tests
- Adaptation of the PerformanceRÃ¥unner and FrameworkPerformanceMethod to use the SlingAnnotationTestRunner and also process @Before and @After annotation.

This is a first prototype with all the implications (architecture and code improvements, bugs, etc.) but it's working :). You'll find an example in testing/samples/simple-tests.

I'm sharing it with you to open the discussion and get a feedback, possible improvements remarks, etc. The goal is at the end to be able to combine sling performance and sling junit.

Cheers,
Michael

Re: Combining Sling performance and Sling Junit

Posted by Michael Tarantino <ta...@adobe.com>.
Hi Antonio,

Jira issue created : https://issues.apache.org/jira/browse/SLING-3746.

Regards,
Michael



On 08/07/14 11:07, "Antonio Sanso" <as...@adobe.com> wrote:

>hi Michael,
>
>thanks a lot for your contribution.
>May you please create a new JIRA issue ?
>
>regards
>
>antonio
>
>On Jul 4, 2014, at 11:29 AM, Michael Tarantino <ta...@adobe.com> wrote:
>
>> Hi,
>> 
>> Following the ticket  https://issues.apache.org/jira/browse/SLING-3708,
>>I've implemented a first prototype of the combination between the
>>server-side Junit test and the performance testing utilities. The source
>>are available on https://github.com/mtarantino/sling.
>> Here a small description of what has been done in this fork :
>> - Import of the performances classes within sling junit
>> - Implementation of a field annotation @TestParameter which injects a
>>value in a class member via POST parameters (syntax:
>>[package].[classname].[class member name]=[value])
>> - Adding performance information in JSON format for performance tests
>> - Adaptation of the PerformanceRÃ¥unner and FrameworkPerformanceMethod
>>to use the SlingAnnotationTestRunner and also process @Before and @After
>>annotation.
>> 
>> This is a first prototype with all the implications (architecture and
>>code improvements, bugs, etc.) but it's working :). You'll find an
>>example in testing/samples/simple-tests.
>> 
>> I'm sharing it with you to open the discussion and get a feedback,
>>possible improvements remarks, etc. The goal is at the end to be able to
>>combine sling performance and sling junit.
>> 
>> Cheers,
>> Michael
>


Re: Combining Sling performance and Sling Junit

Posted by Antonio Sanso <as...@adobe.com>.
hi Michael,

thanks a lot for your contribution. 
May you please create a new JIRA issue ?

regards

antonio

On Jul 4, 2014, at 11:29 AM, Michael Tarantino <ta...@adobe.com> wrote:

> Hi,
> 
> Following the ticket  https://issues.apache.org/jira/browse/SLING-3708, I've implemented a first prototype of the combination between the server-side Junit test and the performance testing utilities. The source are available on https://github.com/mtarantino/sling.
> Here a small description of what has been done in this fork :
> - Import of the performances classes within sling junit
> - Implementation of a field annotation @TestParameter which injects a value in a class member via POST parameters (syntax: [package].[classname].[class member name]=[value])
> - Adding performance information in JSON format for performance tests
> - Adaptation of the PerformanceRÃ¥unner and FrameworkPerformanceMethod to use the SlingAnnotationTestRunner and also process @Before and @After annotation.
> 
> This is a first prototype with all the implications (architecture and code improvements, bugs, etc.) but it's working :). You'll find an example in testing/samples/simple-tests.
> 
> I'm sharing it with you to open the discussion and get a feedback, possible improvements remarks, etc. The goal is at the end to be able to combine sling performance and sling junit.
> 
> Cheers,
> Michael