5 Replies Latest reply on Apr 22, 2013 3:38 PM by bmajsak

    Arquillian with different JUnit4-TestRunner

    holzig

      Hi *,

       

      i would like to know if there is a valid way to use Arquillian with a different TestRunner. In my concrete case I want to use Arquillian to implement my Concordion Test Cases but both Arquillian and Concordion use a custom JUnit4 Runner.

      As far as my knowledge reaches it is not possible to utilize a TestCase with 2 different runners. So does anyone know a valid solution / workaround to this Problem?

       

      Greetings

      Christian

        • 1. Arquillian with different JUnit4-TestRunner
          aslak

          There is currently no workaround for this that i know of. It's not always streight out of the box to integrate with Arquillian based on how it splits the execution over multiple JVMs.

           

          Please file a JIRA and we'll see what can be done.

          • 2. Re: Arquillian with different JUnit4-TestRunner
            orair

            Is there any news about this question?

            In my company, we also use Concordion to write the acceptance tests and

            arquillian should be very useful to make easier writing the fixtures.

             

            Is there already any workaround to use Concordion together with Arquillian?

            • 3. Re: Arquillian with different JUnit4-TestRunner
              bmajsak

              I think that would be good place to catch up https://community.jboss.org/thread/204384

              • 4. Re: Arquillian with different JUnit4-TestRunner
                kohr-ah

                I need a different JUnit Runner for running Scala Specs2 BDD tests inside Arquillian container.

                 

                I would really like a feature to simply give the client runner as a parameter to Arquillian, so that it could just use that to run the tests.

                 

                I want to avoid reimplementing Specs2 within Arquillian. Would it be technically feasible to build a general backend to Arquillian to use an external test runner?

                • 5. Re: Arquillian with different JUnit4-TestRunner
                  bmajsak

                  Hi Tero,

                   

                  There is no out-of-the-box integration hook to use different runner, however that might be done in similar fashion as we implemented Spock integration.

                   

                  With regards to general backend - this is what we are actually providing nowadays, but you anyway need to write some glue code to talk with Arquillian from your testing framework of choice. I don't see the "generic" way to do so (as simple parameter).