Andrei Dulvac created SLING-2727:
------------------------------------
Summary: Allow PerformanceRunner to run tests provided by a
factory method
Key: SLING-2727
URL: https://issues.apache.org/jira/browse/SLING-2727
Project: Sling
Issue Type: Improvement
Components: Testing
Reporter: Andrei Dulvac
Priority: Minor
Attachments: performance_factory.diff
1. I have modified PerformanceRunner to be able to run tests provided through a
factory method annotated with @PerformanceTestFactory. The method should return
a scalar, an array or a list of objects which contain methods. annotated with
the existent @PerformanceTest. Optionally, the class(es) returned by the
factory method can implement an IdentifiableTestCase interface, which gives the
ability to have custom names for tests running on different instances. The test
collection is done statically, so this works with the existing
@Before/AfterMethodInvocation, allowing to have different test setups at once.
2. Modified ReportLogger to log the test case name as well. Also, changed the
method signatures so that it's clear what is being logged. This is important
for patch 1 to distinguish between different test setups.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira