Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-2236

Surefire plugin absorb exception when TestNG used with Guice

    XMLWordPrintableJSON

Details

    Description

      I have a small Maven demo project where I use Testng a Guice DI. If an error occurs in the Guice initialisation class it is showing up when I use 3.0.0-M3 but from 3.0.0-M4 the exception not appears, only just 0 test executed and the build marked as succeeded. 
      I attached my example project files. If you build this small project there will be no error. But if you use 3.0.0-M3 Surefire version the java.lang.IllegalArgumentException will came up. I think this is the expected behaviour not the 0 tests executed one.
      Please investigate this issue. 

      Attachments

        1. pom.xml
          2 kB
          Laszlo Kalina
        2. ExampleTest.java
          0.4 kB
          Laszlo Kalina
        3. DepInject.java
          0.5 kB
          Laszlo Kalina

        Activity

          People

            Unassigned Unassigned
            lkalina91 Laszlo Kalina
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: