3 Replies Latest reply on Jan 26, 2012 11:08 AM by Franck Garcia

    arquillian-jacoco NoClassDefFound: ArquillianRuntime

    Franck Garcia Newbie

      Hi there,

       

      I'm using Arq to test an ear deployment and I'd like to have code coverage enabled.

      I followed jose's blog post but I have an error when running my test:

       

      Caused by: java.lang.NoClassDefFoundError: org/jboss/arquillian/extension/jacoco/container/ArquillianRuntime
          at org.jboss.seam.transaction.TransactionExtension.$jacocoInit(TransactionExtension.java)
          at org.jboss.seam.transaction.TransactionExtension.<clinit>(TransactionExtension.java)
      

       

      Note that inside the ear under testing, I bundle a lot of 3rd party libraries (like seam 3*).

       

      Config: JBoss as 7.0.2.Final

      Arq: CR6

      Arq-jacoco:Alpha2

       

       

            <dependency>
                 <groupId>org.jboss.arquillian.junit</groupId>
                 <artifactId>arquillian-junit-container</artifactId>
                 <scope>test</scope>
            </dependency>
            <dependency>
                 <groupId>org.jboss.arquillian.protocol</groupId>
                 <artifactId>arquillian-protocol-servlet</artifactId>
            </dependency>
            <dependency><groupId>org.jboss.arquillian.extension</groupId>
                <artifactId>arquillian-jacoco</artifactId>
            </dependency>
            <dependency>
              <groupId>org.jacoco</groupId>
              <artifactId>org.jacoco.core</artifactId>
              <version>0.5.3.201107060350</version>
            </dependency>     
            <dependency>
                 <groupId>org.jboss.as</groupId>
                 <artifactId>jboss-as-arquillian-container-remote</artifactId>
            </dependency>