There is a way to do this with surefire configuration, but it's easier
to go along with the surefire/failsafe conventions:

Unit Tests end in Test
Integration Tests end in IT

Justin

On Feb 17, 2010, at 11:59 AM, Andreas Schaefer <schaef...@me.com> wrote:

> Hi Justin
>
> Thanks for that. It works perfectly in my project as well now. The
> only thing I want to mention is that one MUST NOT add the suffix
> 'Test' to the test classes in order to avoid that the tests are
> executed.
>
> I will try later to see if I can exclude the tests from running by
> default.
>
> -Andy
>
> On Feb 17, 2010, at 4:43 AM, Justin Edelson (JIRA) wrote:
>
>>
>>   [ 
>> https://issues.apache.org/jira/browse/SLING-1364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12834754#action_12834754
>>  ]
>>
>> Justin Edelson commented on SLING-1364:
>> ---------------------------------------
>>
>> adding new prepare-test-webapp goal in r910814 and added sample
>> project (/samples/inplace-integration-test/) in r910815
>>
>>> Inside a Bundle Project it is not possible to executed an embedded
>>> Test with LaunchPad, Cargo and Jetty
>>> ---
>>> ---
>>> ---
>>> ---
>>> ---
>>> ---
>>> ---
>>> ---
>>> ---
>>> ---
>>> ---
>>> ---
>>> -------------------------------------------------------------------
>>>
>>>               Key: SLING-1364
>>>               URL: https://issues.apache.org/jira/browse/SLING-1364
>>>           Project: Sling
>>>        Issue Type: Bug
>>>        Components: Maven Plugins
>>>       Environment: Mac, Java 6, Apache Sling from SVN Trunk
>>>          Reporter: Andreas Schaefer
>>>          Assignee: Justin Edelson
>>>       Attachments: pom copy.xml
>>>
>>>
>>> Inside a bundle project I could not start an integration test.
>>> Even though I could create a launchpad bundles firing up the
>>> embedded Web container (Cargo / Jetty) or even just Jetty fails.
>>> Steps to reproduce it:
>>> 1) Create a Servlet
>>> 2) Create a Bundle that contains the Servlet
>>> 3) Take the POM from launchpad / /testing and move these maven
>>> plugins inside the integration test profile: launchpad and war
>>> 4) Make sure the launchpad plugin is called after the JAR file is
>>> created (pre-integration-test)
>>> Running that with 'mvn -P jcrinstall-tests integration-test' fails
>>> because Sling is never launched even though launchpad-bundles is
>>> created and the war files seems to be fine.
>>> Running the same without Cargo and plain Jetty fails because now
>>> Sling is deployed inside "${basedir}/sling/_" and also the System
>>> Console is not coming up even though the sling home page does.
>>> Cheers - Andy
>>
>> --
>> This message is automatically generated by JIRA.
>> -
>> You can reply to this email to add a comment to the issue online.
>>
>

Reply via email to