3 Replies Latest reply on Mar 21, 2008 12:35 AM by adrian.brock

    testNotAnEar

      I'm seeing this test fail "randomly" under maven, but I don't see it fail in Eclipse.
      What's the story here?

        • 1. Re: testNotAnEar

          I'm going to assume it is cross test pollution since under eclipse
          the order of tests is deterministic since I use TestSuites.

          • 2. Re: testNotAnEar
            starksm64

            It looks like empty directories are not being copied over to target/test-classes:

            [starksm@valkyrie deployers-vfs]$ ls target/tests-classes/structure/ear/
            archive.ear* noappxml.ear/ someappxml.ear/
            complexwithappxml.ear/ simplewithappxml.ear/ strict.ear/
            
            ...
            Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.031 sec <<< FAILURE!
            testNotAnEAR(org.jboss.test.deployers.vfs.structure.ear.test.EARStructureRecognizeTestCase) Time elapsed: 0.016 sec <<< ERROR!
            java.io.FileNotFoundException: File does not exist: C:\home\svn\JBossMC\jboss-deployers\trunk\deployers-vfs\target\tests-classes\structure\ear\notanear
            


            If I just add an empty file to notanear, the mvn test output consistently passes:
            [starksm@valkyrie deployers-vfs]$ touch src/resources/tests/structure/ear/notanear/empty
            [starksm@valkyrie deployers-vfs]$ mvn test
            ...
            Results :
            
            Tests run: 155, Failures: 0, Errors: 0, Skipped: 0
            



            • 3. Re: testNotAnEar

               

              "scott.stark@jboss.org" wrote:
              It looks like empty directories are not being copied over to target/test-classes:


              Thanks, same behaviour as ant then :-)