facebook

How to avoid deploying unit tests to sandbox ?

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #295422 Reply

    aqbrown
    Member

    When I deploy my application to the tomcat sandbox using the supplied ui widgets, all of the unit tests classes and configurations are also deployed. How can I exclude these from deployment ?

    Either src/webapp/WEB-INF/classes or target/classes can be output folders for the main classes. These I want deployed and either output works. Fine.

    The tests and their configs are built to a target/test-classes. These I don’t want deployed but they get deployed anyway.

    Is there an undocumented attribute for .myeclipse that would let me exclude certain output folders from deployment ?

    Using 7.0.

    Thanks

    #295454 Reply

    support-joy
    Member

    You can’t exclude selected classes but if your dependent project consists only of the test classes that you want to exclude, you can go to Windows > Prefs > MyEclipse > Java Enterprise Project > Web Project > Deployment and choose relevant dependent java project deployment policy from the radio button options

    #295472 Reply

    aqbrown
    Member

    I request the following feature:

    In the web deployment builder, allow it to be customized to exclude output folders from deployment when there is more than one output folder.

    I have run in to this because the standard Maven structure has unit tests in the same project. I am kind of surprised that given the Maven integration that this does not work as one might expect.

    #295500 Reply

    Unfortunately, this is not implemented yet. We plan to enhance Maven project deployment in the next releases.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: How to avoid deploying unit tests to sandbox ?

You must be logged in to post in the forum log in