ScalaTest Bug?

Hi!

I have a multi module maven project. More than one module have persistence.xml for testing (in src/test/resources/META-INF/persistence.xml)
If I complile/run test from maven everything work's fine but when I run idea internal scala test, I always get: "javax.persistence.PersistenceException: No name provided and several persistence units found"

If delete all persistence.xml except one (independen the module), the scalatest work (but the maven not of course :)).

For example if I have 3 module (m1, m2, war), and all has persistence.xml the ScalaTest not work. If I remove the persistence.xml from m1 and m2 module (and war module contain all <class> entry), all ScalaTest work fine (but it's wrong :) )

Expected: each module ScalaTest work their own persistence.xml

Thanks

b0c1

2 comments

Hi!

What Scala Plugin version and ScalaTest version do you use?


Best regards,
Ksenia Sautina.

0

Hi!

Scala plugin version: 0.7.89     

Scala test:

  <dependency>
            <groupId>org.scalatest</groupId>
            <artifactId>scalatest_2.9.2</artifactId>
            <version>1.8</version>
            <scope>test</scope>
        </dependency>



b0c1
0

Please sign in to leave a comment.