Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-404

Better reporting when Arquillian fails to initialise

    Details

      Description

      At the moment when Arquillian fails to startup you get the following message:

      java.lang.RuntimeException: Arquillian has previously been attempted initialized, but failed. See previous exceptions for cause.

      It would be good if this could also tell you the test that it failed on, so you know where to look for the exception.

        Gliffy Diagrams

          Activity

          Hide
          aslak Aslak Knutsen added a comment -

          Failing the first, then skipping the rest is ok?

          -------------------------------------------------------
           T E S T S
          -------------------------------------------------------
          Running com.acme.cdi.InjectionTestCase
          Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 5.424 sec <<< FAILURE!
          Running com.acme.resource.InjectionTestCase
          Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.005 sec
          Running com.acme.ejb.TemperatureConverterTestCase
          Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.004 sec
          Running com.acme.jms.InjectionTestCase
          Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.003 sec
          Running com.acme.ejb31.NoInterfaceEJBTestCase
          Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.002 sec
          Running com.acme.cdi.random.RandomTestCase
          Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.005 sec
          Running com.acme.web.LocalRunServletTestCase
          Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.005 sec
          Running com.acme.cdi.payment.SynchronousPaymentProcessorTestCase
          Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.002 sec
          Running com.acme.ejb.InjectionTestCase
          Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.001 sec
           
          Results :
           
          Tests in error: 
            com.acme.cdi.InjectionTestCase
           
          Tests run: 9, Failures: 0, Errors: 1, Skipped: 8
           
          [INFO] ------------------------------------------------------------------------
          [INFO] BUILD FAILURE
          [INFO] ------------------------------------------------------------------------
          
          

          Show
          aslak Aslak Knutsen added a comment - Failing the first, then skipping the rest is ok? ------------------------------------------------------- T E S T S ------------------------------------------------------- Running com.acme.cdi.InjectionTestCase Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 5.424 sec <<< FAILURE! Running com.acme.resource.InjectionTestCase Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.005 sec Running com.acme.ejb.TemperatureConverterTestCase Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.004 sec Running com.acme.jms.InjectionTestCase Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.003 sec Running com.acme.ejb31.NoInterfaceEJBTestCase Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.002 sec Running com.acme.cdi.random.RandomTestCase Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.005 sec Running com.acme.web.LocalRunServletTestCase Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.005 sec Running com.acme.cdi.payment.SynchronousPaymentProcessorTestCase Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.002 sec Running com.acme.ejb.InjectionTestCase Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.001 sec   Results :   Tests in error: com.acme.cdi.InjectionTestCase   Tests run: 9, Failures: 0, Errors: 1, Skipped: 8   [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------
          Hide
          aslak Aslak Knutsen added a comment -

          Or optionally, fail everyone with the same exception so the cause can be found in any of them:

          -------------------------------------------------------
           T E S T S
          -------------------------------------------------------
          Running com.acme.cdi.InjectionTestCase
          Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 5.42 sec <<< FAILURE!
          Running com.acme.resource.InjectionTestCase
          Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.006 sec <<< FAILURE!
          Running com.acme.ejb.TemperatureConverterTestCase
          Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.009 sec <<< FAILURE!
          Running com.acme.jms.InjectionTestCase
          Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.008 sec <<< FAILURE!
          Running com.acme.ejb31.NoInterfaceEJBTestCase
          Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.003 sec <<< FAILURE!
          Running com.acme.cdi.random.RandomTestCase
          Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.007 sec <<< FAILURE!
          Running com.acme.web.LocalRunServletTestCase
          Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.023 sec <<< FAILURE!
          Running com.acme.cdi.payment.SynchronousPaymentProcessorTestCase
          Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.008 sec <<< FAILURE!
          Running com.acme.ejb.InjectionTestCase
          Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.002 sec <<< FAILURE!
           
          Results :
           
          Tests in error: 
            com.acme.cdi.InjectionTestCase
            com.acme.resource.InjectionTestCase
            com.acme.ejb.TemperatureConverterTestCase
            com.acme.jms.InjectionTestCase
            com.acme.ejb31.NoInterfaceEJBTestCase
            com.acme.cdi.random.RandomTestCase
            com.acme.web.LocalRunServletTestCase
            com.acme.cdi.payment.SynchronousPaymentProcessorTestCase
            com.acme.ejb.InjectionTestCase
           
          Tests run: 9, Failures: 0, Errors: 9, Skipped: 0
           
          [INFO] ------------------------------------------------------------------------
          [INFO] BUILD FAILURE
          [INFO] ------------------------------------------------------------------------
          
          

          Show
          aslak Aslak Knutsen added a comment - Or optionally, fail everyone with the same exception so the cause can be found in any of them: ------------------------------------------------------- T E S T S ------------------------------------------------------- Running com.acme.cdi.InjectionTestCase Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 5.42 sec <<< FAILURE! Running com.acme.resource.InjectionTestCase Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.006 sec <<< FAILURE! Running com.acme.ejb.TemperatureConverterTestCase Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.009 sec <<< FAILURE! Running com.acme.jms.InjectionTestCase Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.008 sec <<< FAILURE! Running com.acme.ejb31.NoInterfaceEJBTestCase Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.003 sec <<< FAILURE! Running com.acme.cdi.random.RandomTestCase Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.007 sec <<< FAILURE! Running com.acme.web.LocalRunServletTestCase Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.023 sec <<< FAILURE! Running com.acme.cdi.payment.SynchronousPaymentProcessorTestCase Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.008 sec <<< FAILURE! Running com.acme.ejb.InjectionTestCase Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.002 sec <<< FAILURE!   Results :   Tests in error: com.acme.cdi.InjectionTestCase com.acme.resource.InjectionTestCase com.acme.ejb.TemperatureConverterTestCase com.acme.jms.InjectionTestCase com.acme.ejb31.NoInterfaceEJBTestCase com.acme.cdi.random.RandomTestCase com.acme.web.LocalRunServletTestCase com.acme.cdi.payment.SynchronousPaymentProcessorTestCase com.acme.ejb.InjectionTestCase   Tests run: 9, Failures: 0, Errors: 9, Skipped: 0   [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------
          Hide
          aslak Aslak Knutsen added a comment -

          Fail all tests, with original exception as cause

          pushed upstream

          Show
          aslak Aslak Knutsen added a comment - Fail all tests, with original exception as cause pushed upstream
          Hide
          aslak Aslak Knutsen added a comment -

          1.0.0.CR1 Released, Closing

          Show
          aslak Aslak Knutsen added a comment - 1.0.0.CR1 Released, Closing

            People

            • Assignee:
              aslak Aslak Knutsen
              Reporter:
              swd847 Stuart Douglas
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development