13 Replies Latest reply on Feb 6, 2008 11:19 PM by cory_prowse

    Test database with Seam2, Maven and TestNG?

    andrew.rw.robinson

      I have finally got the maven unit tests through testng running, but they are failing.

      I want to have two databases, one for tomcat deployment and one for my unit tests. The problem is that the seam configuration is picking up my "src/main/resources/META-INF/orm.xml" and "src/main/resources/META-INF/persistence.xml".

      As a result, the tests are being run against the wrong database. Anyone have any bright ideas on how to isolate the unit tests better?

      Thanks,
      Andrew