[
https://issues.apache.org/jira/browse/SLING-2110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13061277#comment-13061277
]
Bertrand Delacretaz commented on SLING-2110:
--------------------------------------------
My idea when creating those samples is that the base test classes are
sufficiently simple to be copied and pasted in people's own projects. The
actual logic that they provide comes (or should come) from the
org.apache.sling.testing.tools module.
IMO the only classes that might be reusable are:
org.apache.sling.testing.samples.integrationtests.serverside.ServerSideTestsBase
org.apache.sling.testing.samples.integrationtests.serverside.sling.SlingServerSideTestsBase
which don't contain much in terms of logic, so copy/paste is fine IMO.
Mark, do you agree with the this?
If yes I'll just document this recommendation to copy/paste at
http://sling.apache.org/site/sling-testing-tools.html
> Test classes should be packaged and deployed as a "-tests.jar" artifact to
> enable reuse of *TestsBase classes in other projects
> -------------------------------------------------------------------------------------------------------------------------------
>
> Key: SLING-2110
> URL: https://issues.apache.org/jira/browse/SLING-2110
> Project: Sling
> Issue Type: Improvement
> Components: Testing
> Affects Versions: Sample Integration Tests 1.0.6
> Reporter: Mark Adamcin
> Priority: Minor
> Fix For: Sample Integration Tests 1.0.8
>
> Attachments: integrationtests-jar_test_jar.patch
>
>
> The Sample Integration Tests module
> (org.apache.sling.testing.samples.integrationtests) contains a couple
> convenient base test classes (ServerSideTestsBase and
> SlingServerSideTestsBase) that would be useful to extend when writing
> integration tests for other projects. However, they are not deployed in the
> primary artifact and so their original source files must be copied into new
> projects when they are set up.
> It would be more convenient if a "jar:tests-jar" goal were added to the
> package phase so that a tests jar will be deployed to the public repository
> during releases.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira