facebook

How to configure runtime classpath for JUnit for web app

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #229067 Reply

    fineman
    Member

    Hi All
    When writing JUnit tests that need to read config files from WEB-INF (eg – unit testing a Spring application that needs to read applicationContext.xml, or an iBatis module that needs SqlMapConfig.xml), how do people normally configure their runtime classpath? I find myself creating a ‘Run’ configuration with WebRoot/WEB-INF manually added to it. But then I have to use this configuration to run any unit tests – I can’t just right click and say ‘Run as Junit Test’.

    Anyone have a nice solution to this or am I missing something obvious?

    Regards
    Neil Canham

    #229068 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev, not ME related.

    This is a good question, I hope others can share their views.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: How to configure runtime classpath for JUnit for web app

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