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

Allow having nested Docker-based tests

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 11.1-rc-1
    • 10.11
    • Test Framework
    • None
    • Unknown
    • N/A

    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

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

            Dates

              Created:
              Updated:
              Resolved: