Hi all,

I opened SLING-3762 to provide a patch extending my work already
merged as part of SLING-3756.

This patch adds annotation support to the PerformanceRunner. This
enables an easier way to provide initialization and cleanup methods
for performance tests, instead of writing a listener to perform those
tasks.

I realized that this mechanism was required because when writing
SamplePerformanceTest [1] I had to resort to an anonymous inner class
to act as a listener to provide initialization and cleanup code for my
test. A listener was never supposed to be used for this purpose. The
role of a listener, instead, is to aggregate test results and publish
them somewhere.

Francesco

[1]: 
https://github.com/apache/sling/blob/trunk/testing/samples/sample-tests/src/main/java/org/apache/sling/testing/samples/sampletests/SamplePerformanceTest.java

Reply via email to