2 Replies Latest reply on Oct 25, 2013 5:34 AM by c_fil

    Change tests directory

    c_fil

      Hi,

       

      I'm using Arquillian to add functional testing to my application, but if I put my tests outside the src/test/java directory, the tests are ignored. So how do I specify the path to tests location?

      I already try to use <testResources> tag on pom.xml but it kept ignoring them.

       

      Thank you,

      Best Regards

        • 1. Re: Change tests directory
          kpiwko

          Hi,

           

          Test resources does not contain test classes, you would need to set test sources.

           

          However, this is not reliable in Maven,especially if tests are out of ${basedir} directory.I would recommend you to bind maven build helper plugin to generate test source and generate test resources phases to append additional directories so they will be recognized by surefire, hence by Arquillian.

           

          HTH,

           

          Karel

          • 2. Re: Change tests directory
            c_fil

            Hi,

             

            It was so simple, and I'm here complicating. That fixed it.

             

            Thank You!

             

            C.C.