3 Replies Latest reply on Mar 16, 2011 2:51 AM by gopibalagala

    Unable to run  TestNG with arquillian1.0.0.Alpha4 Example

    gopibalagala

      Hi,

       

           I have downloaded the arquillian source code from the site https://github.com/jbosgi/arquillian/tree/1.0.0.Alpha4  after that I had build the project sucessfully but when I tried to run the TestNG examples but I am getting this below exception.

       

      I used the following setup:  Jboss-6.0.0.20101110-CR1 and Maven3.

       

                                           .

       

      Exception:

       

      --------------------

       

      D:\sample\arquillian-arquillian-6293bb9\examples\testng>mvn test -Pjbossas-remote-6

       

      [INFO] Scanning for projects...

       

      [INFO]

       

      [INFO] ------------------------------------------------------------------------

       

      [INFO] Building Arquillian Example TestNG 1.0.0.Alpha4

       

      [INFO] ------------------------------------------------------------------------

       

      [WARNING] The POM for woodstox:wstx-asl:jar:3.2.1 is missing, no dependency information available

       

      [INFO]

       

      [INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (enforce-plugin-versions) @ arquillian-example-testng ---

       

      [WARNING] This rule is not compatible with the current version of Maven. The rule is not able to perform any checks.

       

      [INFO]

       

      [INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (enforce-java-version) @ arquillian-example-testng ---

       

      [INFO]

       

      [INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (enforce-maven-version) @ arquillian-example-testng ---

       

      [INFO]

       

      [INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (enforce-maven-environment) @ arquillian-example-testng ---

       

      [INFO]

       

      [INFO] --- maven-resources-plugin:2.4.1:resources (default-resources) @ arquillian-example-testng ---

       

      [INFO] Using 'UTF-8' encoding to copy filtered resources.

       

      [INFO] skip non existing resourceDirectory D:\sample\arquillian-arquillian-6293bb9\examples\testng\src\main\resources

       

      [INFO]

       

      [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ arquillian-example-testng ---

       

      [INFO] No sources to compile

       

      [INFO]

       

      [INFO] --- maven-resources-plugin:2.4.1:testResources (default-testResources) @ arquillian-example-testng ---

       

      [INFO] Using 'UTF-8' encoding to copy filtered resources.

       

      [INFO] Copying 1 resource

       

      [INFO]

       

      [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ arquillian-example-testng ---

       

      [INFO] Nothing to compile - all classes are up to date

       

      [INFO]

       

      [INFO] --- maven-surefire-plugin:2.5:test (default-test) @ arquillian-example-testng ---

       

      [INFO] Surefire report directory: D:\sample\arquillian-arquillian-6293bb9\examples\testng\target\surefire-reports

       

       

       

      -------------------------------------------------------

       

      T E S T S

       

      -------------------------------------------------------

       

      Running TestSuite

       

      Tests run: 40, Failures: 16, Errors: 0, Skipped: 24, Time elapsed: 7.4 sec <<< FAILURE!

       

       

       

      Results :

       

       

       

      Failed tests:

       

        arquillianBeforeClass(com.acme.cdi.InjectionTestCase)

       

        arquillianAfterClass(com.acme.cdi.InjectionTestCase)

       

        arquillianAfterClass(com.acme.cdi.payment.SynchronousPaymentProcessorTestCase)

       

        arquillianAfterTest(com.acme.cdi.random.RandomTestCase)

       

        arquillianAfterClass(com.acme.cdi.random.RandomTestCase)

       

        arquillianAfterTest(com.acme.ejb.InjectionTestCase)

       

        arquillianAfterClass(com.acme.ejb.InjectionTestCase)

       

        arquillianAfterTest(com.acme.ejb.TemperatureConverterTestCase)

       

        arquillianAfterTest(com.acme.ejb.TemperatureConverterTestCase)

       

        arquillianAfterTest(com.acme.ejb.TemperatureConverterTestCase)

       

        arquillianAfterClass(com.acme.ejb.TemperatureConverterTestCase)

       

        arquillianAfterTest(com.acme.jms.InjectionTestCase)

       

        arquillianAfterClass(com.acme.jms.InjectionTestCase)

       

        arquillianAfterTest(com.acme.resource.InjectionTestCase)

       

        arquillianAfterClass(com.acme.resource.InjectionTestCase)

       

        arquillianAfterSuite(com.acme.ejb.TemperatureConverterTestCase)

       

       

       

      Tests run: 40, Failures: 16, Errors: 0, Skipped: 24

       

       

       

      [INFO] ------------------------------------------------------------------------

       

      [INFO] BUILD FAILURE

       

      [INFO] ------------------------------------------------------------------------

       

      [INFO] Total time: 13.940s

       

      [INFO] Finished at: Tue Mar 15 23:03:44 IST 2011

       

      [INFO] Final Memory: 20M/50M

       

      [INFO] ------------------------------------------------------------------------

       

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test (default-test) on project arquillian-example-testng: There are test failures.

       

      [ERROR]

       

      [ERROR] Please refer to D:\sample\arquillian-arquillian-6293bb9\examples\testng\target\surefire-reports for the individual test results.

       

      [ERROR] -> [Help 1]

       

      [ERROR]

       

      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

       

      [ERROR] Re-run Maven using the -X switch to enable full debug logging.

       

      [ERROR]

       

      [ERROR] For more information about the errors and possible solutions, please read the following articles:

       

      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

       

       

       

       

       

      Thank you.