You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Francesco Mari (JIRA)" <ji...@apache.org> on 2014/07/15 09:57:06 UTC

[jira] [Created] (SLING-3762) Add annotation support to the PerformanceRunner

Francesco Mari created SLING-3762:
-------------------------------------

             Summary: Add annotation support to the PerformanceRunner
                 Key: SLING-3762
                 URL: https://issues.apache.org/jira/browse/SLING-3762
             Project: Sling
          Issue Type: Bug
            Reporter: Francesco Mari
            Priority: Minor


I added support for annotations for tests executed with the PerformanceRunner. These annotations allow you to define some methods in the test to be run before or after warm up or performance iterations of the performance test.

This mechanism allow a user to write workflow control code directly in the test, instead of relying on a Listener to perform appropriate initialization and cleanup of test data.

At the same time, the annotations I added play nice with the rest of the standard JUnit annotations. You can always use standard before and after annotations, and rules too. The patch contains a test which proves how the new annotations fit with the performance listeners and with standard JUnit annotations.



--
This message was sent by Atlassian JIRA
(v6.2#6252)