ppalaga opened a new issue #723: Surefire 3.0.0-M4 passing even if a build step throws an exception URL: https://github.com/apache/camel-quarkus/issues/723 The XsltProcessor is throwing NoSuchMethodError when the app is augmented for testing (the same exception is mentioned in #721 for the dev mode). However with maven-surefire-plugin 3.0.0-M4, this exception is swallowed and the whole build is passing and 0 tests run are reported: ``` [INFO] Running org.apache.camel.quarkus.component.xslt.it.XsltTest [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.863 s - in org.apache.camel.quarkus.component.xslt.it.XsltTest [INFO] [INFO] Results: [INFO] [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS ``` When the maven-surefire-plugin is downgraded to 2.22.1, it fails as expected: ``` [INFO] Running org.apache.camel.quarkus.component.xslt.it.XsltTest [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.871 s <<< FAILURE! - in org.apache.camel.quarkus.component.xslt.it.XsltTest [ERROR] org.apache.camel.quarkus.component.xslt.it.XsltTest Time elapsed: 1.871 s <<< ERROR! java.lang.RuntimeException: java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors [error]: Build step org.apache.camel.quarkus.component.xslt.deployment.XsltProcessor#xsltResources threw an exception: java.lang.NoSuchMethodError: javax.xml.transform.TransformerFactory.newInstance(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljavax/xml/transform/TransformerFactory; at org.apache.camel.quarkus.support.xalan.XalanTransformerFactory.<init>(XalanTransformerFactory.java:41) ... [INFO] [INFO] Results: [INFO] [ERROR] Errors: [ERROR] XsltTest ยป Runtime java.lang.RuntimeException: io.quarkus.builder.BuildExcepti... [INFO] [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE ``` I have just reported this in Quarkus: https://github.com/quarkusio/quarkus/issues/7203
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services