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

Allow having nested Docker-based tests

    Details

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

      Description

      Example:

      @UITest(office = true, servletEngine = ServletEngine.TOMCAT,
          forbiddenEngines = {
              // These tests need to have XWiki running inside a Docker container (we chose Tomcat since it's the most
              // used one), because they need LibreOffice to be installed, and we cannot guarantee that it is installed on the
              // host machine.
              ServletEngine.JETTY_STANDALONE
          },
          properties = {
              // Overridden to add the FileUploadPlugin which is needed by the test to upload some office files to import
              "xwikiCfgPlugins=com.xpn.xwiki.plugin.skinx.JsSkinExtensionPlugin,"
                  + "com.xpn.xwiki.plugin.skinx.JsSkinFileExtensionPlugin,"
                  + "com.xpn.xwiki.plugin.skinx.CssSkinExtensionPlugin,"
                  + "com.xpn.xwiki.plugin.skinx.CssSkinFileExtensionPlugin,"
                  + "com.xpn.xwiki.plugin.skinx.LinkExtensionPlugin,"
                  + "com.xpn.xwiki.plugin.fileupload.FileUploadPlugin"
          }
      )
      public class AllIT
      {
          @Nested
          @DisplayName("Office Import Tests")
          class NestedOfficeImporterIT extends OfficeImporterIT
          {
          }
      }
      

        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: