facebook

[JUnit] myeclipse implementation

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #249453 Reply

    adobex
    Member

    Hello,

    I have a webapp made with MyEclipse and I’d like to use JUnit properly. I can launch my JUnit tests but I can see the test files are present inside the webapp/WEB-INF/classes… .
    Then how to avoid that behavior?

    thx

    Adobex

    #249467

    Riyad Kalla
    Member

    What behavior do you want?

    #249476

    adobex
    Member

    I just don’t want the testXXXX.class files pushed inside the WEB-INF/classes.

    #249477

    Riyad Kalla
    Member

    Adobex,
    Open up your project properties, go to the Java Build Path settings and Source tab. Then select the folder you place your unit tests in and then give them a separate output dir.

    If your tests are mixed in with your code in the same source tree, then you can’t exclude them from your output dir.

    #249491

    adobex
    Member

    Perfect! That’s what I was looking for and I didn’t know I could do it like that.
    However, the check box label “Allow output folders for source folders” wasn’t clear enough for me and I tought it had another meaning.

    Thank you very much.

    #249527

    Riyad Kalla
    Member

    Glad it’s working now, I agree, it’s not the most intuitive wording.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: [JUnit] myeclipse implementation

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