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

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

     [ https://issues.apache.org/jira/browse/SLING-3762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bertrand Delacretaz resolved SLING-3762.
----------------------------------------

    Resolution: Fixed
      Assignee: Bertrand Delacretaz

Thanks, all tests pass with this new patch, I have applied it in http://svn.apache.org/r1610715

> 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
>            Assignee: Bertrand Delacretaz
>            Priority: Minor
>         Attachments: SLING-3762-001.patch, SLING-3762-002.patch
>
>
> 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)