[ 
https://issues.apache.org/jira/browse/SLING-2110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13058801#comment-13058801
 ] 

Mark Adamcin commented on SLING-2110:
-------------------------------------

I see what you mean. I got confused by the empty main jar artifact that didn't 
contain the base classes and decided to solve the problem by wrapping up the 
test classes into their own artifact. Do you think it be more ideal to create a 
test-sources artifact instead of the tests artifact? That would seem to more 
closely follow how the other sample junit modules are being deployed.

> 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

        

Reply via email to