facebook

Test Directories

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #238709 Reply

    David
    Member

    I am starting a new Web project with Eclipse and I am unable to create the following directory structure:

    project

    |-src\com\blahblah
    |-WEb-root
    |-test\com\blahblah

    I usually do this for ease of Ant tasks to not/include test classes. However, when I try this, MyEclipse wants to put my test directory under “src”. I can live with that, but can anyone tell me what it is doing that – is it the preferred way to structure test directories?

    Thanks

    #238718 Reply

    Scott Anderson
    Participant

    You should be able to set that up just fine. Just add a new source folder (<right-click> > New > Source Folder) called test and make sure the output directory for it points to Web-root/WEB-INF/classes, just like the other source directory if they’re supposed to be deployed with your web application.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Test Directories

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