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

Reply via email to