Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-15426

Arquillian - Missing Rerun Failing Test property cause test failure at first attempt

XMLWordPrintable

    • False
    • False
    • % %
    • Undefined
    • Hide

      As example, take archetype "spring-boot-cxf-jaxrs-xml"

      1. mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeCatalog=http://nexus.fuse-qe.eng.rdu2.redhat.com/repository/fuse-all/io/fabric8/archetypes/archetypes-catalog/2.2.0.fuse-sb2-780040-redhat-00001/archetypes-catalog-2.2.0.fuse-sb2-780040-redhat-00001-archetype-catalog.xml -DarchetypeGroupId=org.jboss.fuse.fis.archetypes -DarchetypeArtifactId=spring-boot-cxf-jaxrs-xml-archetype -DarchetypeVersion=2.2.0.fuse-sb2-780040-redhat-00001 -DgroupId=foo -DartifactId=spring-boot-cxf-jaxrs-xml -Dpackage=com.foo
      2. mvn clean -Dnamespace.use.existing=smongiar-test -Dtest=KubernetesIntegrationKT -Dnamespace.cleanup.enabled=false -Dnamespace.destroy.enabled=false test
      Show
      As example, take archetype " spring-boot-cxf-jaxrs-xml " mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeCatalog= http://nexus.fuse-qe.eng.rdu2.redhat.com/repository/fuse-all/io/fabric8/archetypes/archetypes-catalog/2.2.0.fuse-sb2-780040-redhat-00001/archetypes-catalog-2.2.0.fuse-sb2-780040-redhat-00001-archetype-catalog.xml -DarchetypeGroupId=org.jboss.fuse.fis.archetypes -DarchetypeArtifactId=spring-boot-cxf-jaxrs-xml-archetype -DarchetypeVersion=2.2.0.fuse-sb2-780040-redhat-00001 -DgroupId=foo -DartifactId=spring-boot-cxf-jaxrs-xml -Dpackage=com.foo mvn clean -Dnamespace.use.existing=smongiar-test -Dtest=KubernetesIntegrationKT -Dnamespace.cleanup.enabled=false -Dnamespace.destroy.enabled=false test

      Arquillian test fails at first attempt, it doesn't wait pod to be ready.

      The cause is inside pom.xml: missing maven-surefire-plugin configuration property about number of attempting rerun in case of failure ->

      <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
         <version>${maven-surefire-plugin.version}</version>
         <inherited>true</inherited>
         <configuration>
              <rerunFailingTestsCount>15</rerunFailingTestsCount>
              ...
         </configuration>
      <plugin>

      Affected archetype are:

      spring-boot-camel-soap-rest-bridge-archetype

      spring-boot-cxf-jaxrs-xml-archetype

      spring-boot-cxf-jaxws-xml-archetype

      Version: 2.2.0.fuse-sb2-780040-redhat-00001

              yfang@redhat.com Freeman(Yue) Fang
              smongiar@redhat.com Salvatore Mongiardo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: