Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-16122

Docker-based tests don't generate coverage when Clover is enabled

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.11
    • Fix Version/s: 11.1-rc-1
    • Component/s: Test Framework
    • Labels:
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      For ex:

                      [INFO] --- maven-failsafe-plugin:2.22.0:integration-test (functional-tests) @ xwiki-platform-office-test-docker ---
                      ������ Checking the system...
                      ��� Docker version should be at least 1.6.0
              03:53:59.605 [main] INFO  o.x.t.d.junit5.XWikiDockerExtension - XWiki is not started, starting all...
              03:53:59.610 [main] INFO  o.x.t.d.junit5.XWikiDockerExtension - (*) Starting database [HSQLDB_EMBEDDED]...
              03:53:59.619 [main] INFO  o.x.t.d.junit5.XWikiDockerExtension - (*) Building custom XWiki WAR...
              03:53:59.627 [main] INFO  o.x.test.docker.junit5.WARBuilder - XWiki WAR is not fully built in [./target/hsqldb_embedded-default-default-tomcat-default-firefox/xwiki], (re)building it!
              03:54:02.923 [main] INFO  o.x.test.docker.junit5.WARBuilder - Finding version ...
              03:54:03.062 [main] INFO  o.x.test.docker.junit5.WARBuilder - Found version = [11.1-SNAPSHOT]
              03:54:03.062 [main] INFO  o.x.test.docker.junit5.WARBuilder - Resolving distribution dependencies ...
              03:54:07.085 [main] INFO  o.x.test.docker.junit5.WARBuilder - Copying JAR dependencies ...
              03:54:12.840 [main] INFO  o.x.test.docker.junit5.WARBuilder - Expanding WAR dependencies ...
              03:54:14.037 [main] INFO  o.x.test.docker.junit5.WARBuilder - Copying JDBC driver for database [HSQLDB_EMBEDDED]...
              03:54:14.040 [main] INFO  o.x.test.docker.junit5.WARBuilder - Copying Skin resources ...
              03:54:14.122 [main] INFO  o.x.test.docker.junit5.WARBuilder - Generating configuration files for database [HSQLDB_EMBEDDED]...
              03:54:14.283 [main] INFO  o.x.t.d.junit5.XWikiDockerExtension - (*) Starting Servlet container [TOMCAT]...
              03:54:39.014 [main] INFO  o.x.t.d.junit5.XWikiDockerExtension - (*) Provision XAR extensions for test...
              03:54:39.112 [main] INFO  o.x.t.d.junit5.ExtensionInstaller - ...Adding extension [org.xwiki.platform:xwiki-platform-index-tree-macro/11.1-SNAPSHOT] to the list of extensions to provision...
              03:54:39.112 [main] INFO  o.x.t.d.junit5.ExtensionInstaller - ...Adding extension [org.xwiki.platform:xwiki-platform-tree-macro/11.1-SNAPSHOT] to the list of extensions to provision...
              03:54:39.112 [main] INFO  o.x.t.d.junit5.ExtensionInstaller - ...Adding extension [org.xwiki.platform:xwiki-platform-icon-fontawesome/11.1-SNAPSHOT] to the list of extensions to provision...
              03:54:39.112 [main] INFO  o.x.t.d.junit5.ExtensionInstaller - ...Adding extension [org.xwiki.platform:xwiki-platform-icon-ui/11.1-SNAPSHOT] to the list of extensions to provision...
              03:54:39.112 [main] INFO  o.x.t.d.junit5.ExtensionInstaller - ...Adding extension [org.xwiki.platform:xwiki-platform-office-ui/11.1-SNAPSHOT] to the list of extensions to provision...
              03:54:39.112 [main] INFO  o.x.t.d.junit5.ExtensionInstaller - ...Adding extension [org.xwiki.platform:xwiki-platform-administration-ui/11.1-SNAPSHOT] to the list of extensions to provision...
              03:54:40.095 [tc-okhttp-stream-1513720165] INFO  o.x.t.d.j.s.ServletContainerExecutor - STDERR: 02-Feb-2019 02:54:40.093 INFO [http://localhost:44879/xwiki/rest/jobs?jobType=install&async=false] org.apache.catalina.core.ApplicationContext.log RestletServlet: [Restlet] ServerServlet: component class is null
              03:54:43.356 [tc-okhttp-stream-1513720165] INFO  o.x.t.d.j.s.ServletContainerExecutor - STDERR: ERROR: CLOVER: Unable to load the coverage database at "/home/hudsonagent/jenkins_root/workspace/Clover/clover-data/clover.db"
              03:54:43.357 [tc-okhttp-stream-1513720165] INFO  o.x.t.d.j.s.ServletContainerExecutor - STDERR: ERROR: CLOVER: No coverage data will be gathered.
              03:54:51.429 [tc-okhttp-stream-1513720165] INFO  o.x.t.d.j.s.ServletContainerExecutor - STDERR: ERROR: CLOVER: Unable to load the coverage database at "/home/hudsonagent/jenkins_root/workspace/Clover/clover-data/clover.db"
              03:54:51.429 [tc-okhttp-stream-1513720165] INFO  o.x.t.d.j.s.ServletContainerExecutor - STDERR: ERROR: CLOVER: No coverage data will be gathered.
              03:54:51.436 [tc-okhttp-stream-1513720165] INFO  o.x.t.d.j.s.ServletContainerExecutor - STDERR: ERROR: CLOVER: Unable to load the coverage database at "/home/hudsonagent/jenkins_root/workspace/Clover/clover-data/clover.db"
              03:54:51.436 [tc-okhttp-stream-1513720165] INFO  o.x.t.d.j.s.ServletContainerExecutor - STDERR: ERROR: CLOVER: No coverage data will be gathered.
              03:54:51.443 [tc-okhttp-stream-1513720165] INFO  o.x.t.d.j.s.ServletContainerExecutor - STDERR: ERROR: CLOVER: Unable to load the coverage database at "/home/hudsonagent/jenkins_root/workspace/Clover/clover-data/clover.db"
              03:54:51.443 [tc-okhttp-stream-1513720165] INFO  o.x.t.d.j.s.ServletContainerExecutor - STDERR: ERROR: CLOVER: No coverage data will be gathered.
              03:54:51.448 [tc-okhttp-stream-1513720165] INFO  o.x.t.d.j.s.ServletContainerExecutor - STDERR: ERROR: CLOVER: Unable to load the coverage database at "/home/hudsonagent/jenkins_root/workspace/Clover/clover-data/clover.db"
              03:54:51.449 [tc-okhttp-stream-1513720165] INFO  o.x.t.d.j.s.ServletContainerExecutor - STDERR: ERROR: CLOVER: No coverage data will be gathered.
              03:54:54.568 [tc-okhttp-stream-1513720165] INFO  o.x.t.d.j.s.ServletContainerExecutor - STDERR: ERROR: CLOVER: Unable to load the coverage database at "/home/hudsonagent/jenkins_root/workspace/Clover/clover-data/clover.db"
              03:54:54.568 [tc-okhttp-stream-1513720165] INFO  o.x.t.d.j.s.ServletContainerExecutor - STDERR: ERROR: CLOVER: No coverage data will be gathered.
              03:54:55.130 [main] INFO  o.x.t.d.j.b.BrowserContainerExecutor - (*) Starting browser [FIREFOX]...
              03:55:11.106 [main] INFO  o.x.t.d.j.b.BrowserContainerExecutor - VNC server address = vnc://vnc:secret@localhost:44880
              03:55:11.450 [main] INFO  o.x.t.d.junit5.XWikiDockerExtension - (*) Initialize Test Context...
              03:55:11.845 [tc-okhttp-stream-1513720165] INFO  o.x.t.d.j.s.ServletContainerExecutor - STDERR: ERROR: CLOVER: Unable to load the coverage database at "/home/hudsonagent/jenkins_root/workspace/Clover/clover-data/clover.db"
              03:55:11.845 [tc-okhttp-stream-1513720165] INFO  o.x.t.d.j.s.ServletContainerExecutor - STDERR: ERROR: CLOVER: No coverage data will be gathered.
              03:55:11.860 [tc-okhttp-stream-1513720165] INFO  o.x.t.d.j.s.ServletContainerExecutor - STDERR: ERROR: CLOVER: Unable to load the coverage database at "/home/hudsonagent/jenkins_root/workspace/Clover/clover-data/clover.db"
              03:55:11.861 [tc-okhttp-stream-1513720165] INFO  o.x.t.d.j.s.ServletContainerExecutor - STDERR: ERROR: CLOVER: No coverage data will be gathered.
              03:55:11.887 [tc-okhttp-stream-1513720165] INFO  o.x.t.d.j.s.ServletContainerExecutor - STDERR: ERROR: CLOVER: Unable to load the coverage database at "/home/hudsonagent/jenkins_root/workspace/Clover/clover-data/clover.db"
              03:55:11.888 [tc-okhttp-stream-1513720165] INFO  o.x.t.d.j.s.ServletContainerExecutor - STDERR: ERROR: CLOVER: No coverage data will be gathered.
              03:55:11.888 [tc-okhttp-stream-1513720165] INFO  o.x.t.d.j.s.ServletContainerExecutor - STDERR: ERROR: CLOVER: Unable to load the coverage database at "/home/hudsonagent/jenkins_root/workspace/Clover/clover-data/clover.db"
              03:55:11.888 [tc-okhttp-stream-1513720165] INFO  o.x.t.d.j.s.ServletContainerExecutor - STDERR: ERROR: CLOVER: No coverage data will be gathered.
              03:55:17.099 [tc-okhttp-stream-1513720165] INFO  o.x.t.d.j.s.ServletContainerExecutor - STDERR: ERROR: CLOVER: Unable to load the coverage database at "/home/hudsonagent/jenkins_root/workspace/Clover/clover-data/clover.db"
              03:55:17.100 [tc-okhttp-stream-1513720165] INFO  o.x.t.d.j.s.ServletContainerExecutor - STDERR: ERROR: CLOVER: No coverage data will be gathered.
              03:55:17.109 [tc-okhttp-stream-1513720165] INFO  o.x.t.d.j.s.ServletContainerExecutor - STDERR: ERROR: CLOVER: Unable to load the coverage database at "/home/hudsonagent/jenkins_root/workspace/Clover/clover-data/clover.db"
              03:55:17.110 [tc-okhttp-stream-1513720165] INFO  o.x.t.d.j.s.ServletContainerExecutor - STDERR: ERROR: CLOVER: No coverage data will be gathered.
              03:55:17.122 [tc-okhttp-stream-1513720165] INFO  o.x.t.d.j.s.ServletContainerExecutor - STDERR: ERROR: CLOVER: Unable to load the coverage database at "/home/hudsonagent/jenkins_root/workspace/Clover/clover-data/clover.db"
              03:55:17.123 [tc-okhttp-stream-1513720165] INFO  o.x.t.d.j.s.ServletContainerExecutor - STDERR: ERROR: CLOVER: No coverage data will be gathered.
      ...
              03:55:32.779 [main] INFO  o.x.t.d.junit5.XWikiDockerExtension - (*) VNC recording of test has been saved to [./target/hsqldb_embedded-default-default-tomcat-default-firefox/org.xwiki.officeimporter.test.ui.OfficeImporterIT-verifyImport.flv]
              [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 100.419 s <<< FAILURE! - in org.xwiki.officeimporter.test.ui.OfficeImporterIT
              [ERROR] verifyImport{TestInfo}  Time elapsed: 14.005 s  <<< FAILURE!
              org.junit.ComparisonFailure: expected:<[C]onnected> but was:<[Not c]onnected>
                      at org.junit.Assert.assertEquals(Assert.java:115)
                      at org.junit.Assert.assertEquals(Assert.java:144)
                      at org.xwiki.officeimporter.test.ui.OfficeImporterIT.setUp(OfficeImporterIT.java:95)
                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                      at java.lang.reflect.Method.invoke(Method.java:498)
                      at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:532)
                      at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:115)
                      at org.junit.jupiter.engine.descriptor.ClassTestDescriptor.invokeMethodInExtensionContext(ClassTestDescriptor.java:436)
                      at org.junit.jupiter.engine.descriptor.ClassTestDescriptor.lambda$synthesizeBeforeEachMethodAdapter$14(ClassTestDescriptor.java:424)
                      at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeBeforeEachMethods$2(TestMethodTestDescriptor.java:136)
                      at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:72)
                      at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeBeforeMethodsOrCallbacksUntilExceptionOccurs(TestMethodTestDescriptor.java:156)
                      at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeBeforeEachMethods(TestMethodTestDescriptor.java:135)
                      at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:110)
                      at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:59)
                      at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$4(NodeTestTask.java:108)
                      at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:72)
                      at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:98)
                      at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:74)
                      at java.util.ArrayList.forEach(ArrayList.java:1257)
                      at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
                      at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$4(NodeTestTask.java:112)
                      at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:72)
                      at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:98)
                      at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:74)
                      at java.util.ArrayList.forEach(ArrayList.java:1257)
                      at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
                      at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$4(NodeTestTask.java:112)
                      at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:72)
                      at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:98)
                      at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:74)
                      at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)
                      at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
                      at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)
                      at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:220)
                      at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$6(DefaultLauncher.java:188)
                      at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:202)
                      at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:181)
                      at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:128)
                      at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:142)
                      at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:117)
                      at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383)
                      at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
                      at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
                      at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
      

        Attachments

          Activity

            People

            • Assignee:
              vmassol Vincent Massol
              Reporter:
              vmassol Vincent Massol
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: