Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-3483

Fix Studio Tests on windows

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 40, 41
    • Fix Version/s: 42
    • Component/s: QA / CI / Tests

      Description

      When running mvn clean install on windows, the build fail in nuxeo-studio-tests module due to misformatted String comparisons :

      Failed tests:
        ExtendedSchemaBuildAndDeployTest>AbstractBuildTestCase.testBuild:205->AbstractBuildTestCase.registerAndValidateModel:375->AbstractBuildTestCase.checkFileEquals:310 Files 'testers/persistence/myInitSchema.ds.xml' and 'C:\dev\projects\nuxeo-studio\nuxeo-studio-test\target\nxruntime-main-1560656023371920274.tmp\data\studio\workspaces\test\test-#1-cloned-2016-08-19-10-47-15\studio\.metadata\myInitSchema.ds.xml' differ:  expected:<...sd</xsdResource>
        <[]mode>INIT</mode>
        <...> but was:<...sd</xsdResource>
        <[referencedXSD>
          <string>C:/dev/projects/nuxeo-studio/nuxeo-studio-test/target/nxruntime-main-1560656023371920274.tmp/data/studio/workspaces/test/test-%231-cloned-2016-08-19-10-47-15/studio/resources/schemas/sampleinit.xsd</string>
        </referencedXSD>
        <]mode>INIT</mode>
        <...>
        ExtendedSchemaValidationTest>AbstractBuildTestCase.testBuild:205->AbstractBuildTestCase.registerAndValidateModel:375->AbstractBuildTestCase.checkFileEquals:310 Files 'testers/persistence/myInitSchema.ds.xml' and 'C:\dev\projects\nuxeo-studio\nuxeo-studio-test\target\nxruntime-main-9168919110106286195.tmp\data\studio\workspaces\test\test-#1-cloned-2016-08-19-10-47-19\studio\.metadata\myInitSchema.ds.xml' differ:  expected:<...sd</xsdResource>
        <[]mode>INIT</mode>
        <...> but was:<...sd</xsdResource>
        <[referencedXSD>
          <string>C:/dev/projects/nuxeo-studio/nuxeo-studio-test/target/nxruntime-main-9168919110106286195.tmp/data/studio/workspaces/test/test-%231-cloned-2016-08-19-10-47-19/studio/resources/schemas/sampleinit.xsd</string>
        </referencedXSD>
        <]mode>INIT</mode>
        <...>
        ExtendedSchemaValidationTest>AbstractBuildTestCase.testBuild:205->AbstractBuildTestCase.registerAndValidateModel:375->AbstractBuildTestCase.checkFileEquals:310 Files 'testers/persistence/myInitSchema.ds.xml' and 'C:\dev\projects\nuxeo-studio\nuxeo-studio-test\target\nxruntime-main-3633458391345210076.tmp\data\studio\workspaces\test\test-#1-cloned-2016-08-19-10-47-21\studio\.metadata\myInitSchema.ds.xml' differ:  expected:<...sd</xsdResource>
        <[]mode>INIT</mode>
        <...> but was:<...sd</xsdResource>
        <[referencedXSD>
          <string>C:/dev/projects/nuxeo-studio/nuxeo-studio-test/target/nxruntime-main-3633458391345210076.tmp/data/studio/workspaces/test/test-%231-cloned-2016-08-19-10-47-21/studio/resources/schemas/sampleinit.xsd</string>
        </referencedXSD>
        <]mode>INIT</mode>
        <...>
        ExtendedSchemaValidationTest>AbstractBuildTestCase.testBuild:205->AbstractBuildTestCase.registerAndValidateModel:375->AbstractBuildTestCase.checkFileEquals:310 Files 'testers/persistence/myInitSchema.ds.xml' and 'C:\dev\projects\nuxeo-studio\nuxeo-studio-test\target\nxruntime-main-5638932984028825117.tmp\data\studio\workspaces\test\test-#1-cloned-2016-08-19-10-47-24\studio\.metadata\myInitSchema.ds.xml' differ:  expected:<...sd</xsdResource>
        <[]mode>INIT</mode>
        <...> but was:<...sd</xsdResource>
        <[referencedXSD>
          <string>C:/dev/projects/nuxeo-studio/nuxeo-studio-test/target/nxruntime-main-5638932984028825117.tmp/data/studio/workspaces/test/test-%231-cloned-2016-08-19-10-47-24/studio/resources/schemas/sampleinit.xsd</string>
        </referencedXSD>
        <]mode>INIT</mode>
        <...>
        ExtendedSchemaValidationTest>AbstractBuildTestCase.testBuild:205->AbstractBuildTestCase.registerAndValidateModel:375->AbstractBuildTestCase.checkFileEquals:310 Files 'testers/persistence/myInitSchema.ds.xml' and 'C:\dev\projects\nuxeo-studio\nuxeo-studio-test\target\nxruntime-main-9012048049190257306.tmp\data\studio\workspaces\test\test-#1-cloned-2016-08-19-10-47-27\studio\.metadata\myInitSchema.ds.xml' differ:  expected:<...sd</xsdResource>
        <[]mode>INIT</mode>
        <...> but was:<...sd</xsdResource>
        <[referencedXSD>
          <string>C:/dev/projects/nuxeo-studio/nuxeo-studio-test/target/nxruntime-main-9012048049190257306.tmp/data/studio/workspaces/test/test-%231-cloned-2016-08-19-10-47-27/studio/resources/schemas/sampleinit.xsd</string>
        </referencedXSD>
        <]mode>INIT</mode>
        <...>
        ExtendedSchemaValidationTest>AbstractBuildTestCase.testBuild:205->AbstractBuildTestCase.registerAndValidateModel:375->AbstractBuildTestCase.checkFileEquals:310 Files 'testers/persistence/myInitSchema.ds.xml' and 'C:\dev\projects\nuxeo-studio\nuxeo-studio-test\target\nxruntime-main-3052898249501642862.tmp\data\studio\workspaces\test\test-#1-cloned-2016-08-19-10-47-30\studio\.metadata\myInitSchema.ds.xml' differ:  expected:<...sd</xsdResource>
        <[]mode>INIT</mode>
        <...> but was:<...sd</xsdResource>
        <[referencedXSD>
          <string>C:/dev/projects/nuxeo-studio/nuxeo-studio-test/target/nxruntime-main-3052898249501642862.tmp/data/studio/workspaces/test/test-%231-cloned-2016-08-19-10-47-30/studio/resources/schemas/sampleinit.xsd</string>
        </referencedXSD>
        <]mode>INIT</mode>
        <...>
        ExtendedSchemaValidationTest>AbstractBuildTestCase.testBuild:205->AbstractBuildTestCase.registerAndValidateModel:375->AbstractBuildTestCase.checkFileEquals:310 Files 'testers/persistence/myInitSchema.ds.xml' and 'C:\dev\projects\nuxeo-studio\nuxeo-studio-test\target\nxruntime-main-6557211783729025986.tmp\data\studio\workspaces\test\test-#1-cloned-2016-08-19-10-47-33\studio\.metadata\myInitSchema.ds.xml' differ:  expected:<...sd</xsdResource>
        <[]mode>INIT</mode>
        <...> but was:<...sd</xsdResource>
        <[referencedXSD>
          <string>C:/dev/projects/nuxeo-studio/nuxeo-studio-test/target/nxruntime-main-6557211783729025986.tmp/data/studio/workspaces/test/test-%231-cloned-2016-08-19-10-47-33/studio/resources/schemas/sampleinit.xsd</string>
        </referencedXSD>
        <]mode>INIT</mode>
        <...>
        ExtendedSchemaValidationTest>AbstractBuildTestCase.testBuild:205->AbstractBuildTestCase.registerAndValidateModel:375->AbstractBuildTestCase.checkFileEquals:310 Files 'testers/persistence/myInitSchema.ds.xml' and 'C:\dev\projects\nuxeo-studio\nuxeo-studio-test\target\nxruntime-main-6725188058051959954.tmp\data\studio\workspaces\test\test-#1-cloned-2016-08-19-10-47-36\studio\.metadata\myInitSchema.ds.xml' differ:  expected:<...sd</xsdResource>
        <[]mode>INIT</mode>
        <...> but was:<...sd</xsdResource>
        <[referencedXSD>
          <string>C:/dev/projects/nuxeo-studio/nuxeo-studio-test/target/nxruntime-main-6725188058051959954.tmp/data/studio/workspaces/test/test-%231-cloned-2016-08-19-10-47-36/studio/resources/schemas/sampleinit.xsd</string>
        </referencedXSD>
        <]mode>INIT</mode>
        <...>
        ExtendedSchemaValidationTest>AbstractBuildTestCase.testBuild:205->AbstractBuildTestCase.registerAndValidateModel:375->AbstractBuildTestCase.checkFileEquals:310 Files 'testers/persistence/myInitSchema.ds.xml' and 'C:\dev\projects\nuxeo-studio\nuxeo-studio-test\target\nxruntime-main-4618076954955065744.tmp\data\studio\workspaces\test\test-#1-cloned-2016-08-19-10-47-39\studio\.metadata\myInitSchema.ds.xml' differ:  expected:<...sd</xsdResource>
        <[]mode>INIT</mode>
        <...> but was:<...sd</xsdResource>
        <[referencedXSD>
          <string>C:/dev/projects/nuxeo-studio/nuxeo-studio-test/target/nxruntime-main-4618076954955065744.tmp/data/studio/workspaces/test/test-%231-cloned-2016-08-19-10-47-39/studio/resources/schemas/sampleinit.xsd</string>
        </referencedXSD>
        <]mode>INIT</mode>
        <...>
        StudioCAPBuildTest>AbstractBuildTestCase.testBuild:216->AbstractBuildTestCase.validateBuildWithTester:236->AbstractBuildTestCase.checkFileEquals:310 Files 'scss/mybranding_variables.scss' and 'C:\dev\projects\nuxeo-studio\nuxeo-studio-test\target\nxruntime-main-337259976349808491.tmp\data\studio\workspaces\test\test-#1-cloned-2016-08-19-10-48-04\studio\themes\palettes\mybranding_variables.scss' differ:  expected:<... Geneva, sans-serif;[
      $link: #cc1b1b;]
      $tabs-horizontal-co...> but was:<... Geneva, sans-serif;[
      ]link: #cc1b1b;
      $tabs-horizontal-co...>
        StudioCAPBuildTest>AbstractBuildTestCase.testBuild:216->AbstractBuildTestCase.validateBuildWithTester:236->AbstractBuildTestCase.checkFileEquals:310 Files 'scss/mybranding_variables.scss' and 'C:\dev\projects\nuxeo-studio\nuxeo-studio-test\target\nxruntime-main-8135366361485794152.tmp\data\studio\workspaces\test\test-#1-cloned-2016-08-19-10-48-15\studio\themes\palettes\mybranding_variables.scss' differ:  expected:<... Geneva, sans-serif;[
      $link: #cc1b1b;]
      $tabs-horizontal-co...> but was:<... Geneva, sans-serif;[
      ]link: #cc1b1b;
      $tabs-horizontal-co...>
        StudioCAPBuildTest>AbstractBuildTestCase.testBuild:216->AbstractBuildTestCase.validateBuildWithTester:236->AbstractBuildTestCase.checkFileEquals:310 Files 'scss/mybranding_variables.scss' and 'C:\dev\projects\nuxeo-studio\nuxeo-studio-test\target\nxruntime-main-5998940323056371760.tmp\data\studio\workspaces\test\test-#1-cloned-2016-08-19-10-48-18\studio\themes\palettes\mybranding_variables.scss' differ:  expected:<... Geneva, sans-serif;[
      $link: #cc1b1b;]
      $tabs-horizontal-co...> but was:<... Geneva, sans-serif;[
      ]link: #cc1b1b;
      $tabs-horizontal-co...>
        StudioCAPBuildTest>AbstractBuildTestCase.testBuild:216->AbstractBuildTestCase.validateBuildWithTester:236->AbstractBuildTestCase.checkFileEquals:310 Files 'scss/mybranding_variables.scss' and 'C:\dev\projects\nuxeo-studio\nuxeo-studio-test\target\nxruntime-main-6805321123534447829.tmp\data\studio\workspaces\test\test-#1-cloned-2016-08-19-10-48-21\studio\themes\palettes\mybranding_variables.scss' differ:  expected:<... Geneva, sans-serif;[
      $link: #cc1b1b;]
      $tabs-horizontal-co...> but was:<... Geneva, sans-serif;[
      ]link: #cc1b1b;
      $tabs-horizontal-co...>
        StudioJSFBuildTest>AbstractBuildTestCase.testBuild:216->AbstractBuildTestCase.validateBuildWithTester:236->AbstractBuildTestCase.checkFileEquals:310 Files 'scss/mybranding_variables.scss' and 'C:\dev\projects\nuxeo-studio\nuxeo-studio-test\target\nxruntime-main-2665331665017211577.tmp\data\studio\workspaces\test\test-#1-cloned-2016-08-19-10-49-52\studio\themes\palettes\mybranding_variables.scss' differ:  expected:<... Geneva, sans-serif;[
      $link: #cc1b1b;]
      $tabs-horizontal-co...> but was:<... Geneva, sans-serif;[
      ]link: #cc1b1b;
      $tabs-horizontal-co...>
        StudioJSFBuildTest>AbstractBuildTestCase.testBuild:216->AbstractBuildTestCase.validateBuildWithTester:236->AbstractBuildTestCase.checkFileEquals:310 Files 'scss/mybranding_variables.scss' and 'C:\dev\projects\nuxeo-studio\nuxeo-studio-test\target\nxruntime-main-2022636796424821652.tmp\data\studio\workspaces\test\test-#1-cloned-2016-08-19-10-49-56\studio\themes\palettes\mybranding_variables.scss' differ:  expected:<... Geneva, sans-serif;[
      $link: #cc1b1b;]
      $tabs-horizontal-co...> but was:<... Geneva, sans-serif;[
      ]link: #cc1b1b;
      $tabs-horizontal-co...>
        StudioJSFBuildTest>AbstractBuildTestCase.testBuild:216->AbstractBuildTestCase.validateBuildWithTester:236->AbstractBuildTestCase.checkFileEquals:310 Files 'scss/mybranding_variables.scss' and 'C:\dev\projects\nuxeo-studio\nuxeo-studio-test\target\nxruntime-main-5211471173419328774.tmp\data\studio\workspaces\test\test-#1-cloned-2016-08-19-10-49-59\studio\themes\palettes\mybranding_variables.scss' differ:  expected:<... Geneva, sans-serif;[
      $link: #cc1b1b;]
      $tabs-horizontal-co...> but was:<... Geneva, sans-serif;[
      ]link: #cc1b1b;
      $tabs-horizontal-co...>
        StudioServerBuildTest>AbstractBuildTestCase.testBuild:216->AbstractBuildTestCase.validateBuildWithTester:236->AbstractBuildTestCase.checkFileEquals:310 Files 'scss/mybranding_variables.scss' and 'C:\dev\projects\nuxeo-studio\nuxeo-studio-test\target\nxruntime-main-4638489511969186816.tmp\data\studio\workspaces\test\test-#1-cloned-2016-08-19-10-50-25\studio\themes\palettes\mybranding_variables.scss' differ:  expected:<... Geneva, sans-serif;[
      $link: #cc1b1b;]
      $tabs-horizontal-co...> but was:<... Geneva, sans-serif;[
      ]link: #cc1b1b;
      $tabs-horizontal-co...>
        StudioServerBuildTest>AbstractBuildTestCase.testBuild:216->AbstractBuildTestCase.validateBuildWithTester:236->AbstractBuildTestCase.checkFileEquals:310 Files 'scss/mybranding_variables.scss' and 'C:\dev\projects\nuxeo-studio\nuxeo-studio-test\target\nxruntime-main-1284346884752152398.tmp\data\studio\workspaces\test\test-#1-cloned-2016-08-19-10-50-30\studio\themes\palettes\mybranding_variables.scss' differ:  expected:<... Geneva, sans-serif;[
      $link: #cc1b1b;]
      $tabs-horizontal-co...> but was:<... Geneva, sans-serif;[
      ]link: #cc1b1b;
      $tabs-horizontal-co...>
        StudioServerBuildTest>AbstractBuildTestCase.testBuild:216->AbstractBuildTestCase.validateBuildWithTester:236->AbstractBuildTestCase.checkFileEquals:310 Files 'scss/mybranding_variables.scss' and 'C:\dev\projects\nuxeo-studio\nuxeo-studio-test\target\nxruntime-main-4947396815003148534.tmp\data\studio\workspaces\test\test-#1-cloned-2016-08-19-10-50-33\studio\themes\palettes\mybranding_variables.scss' differ:  expected:<... Geneva, sans-serif;[
      $link: #cc1b1b;]
      $tabs-horizontal-co...> but was:<... Geneva, sans-serif;[
      ]link: #cc1b1b;
      $tabs-horizontal-co...>
      
      Tests run: 139, Failures: 19, Errors: 0, Skipped: 0
      
      

      There is already a comment in the AbstractBuildTestCase.java saying :

              // disable: not need to remove end of lines while not testing on
              // windows
              // expectedString = expectedString.replaceAll("\r?\n", "");
              // actualString = actualString.replaceAll("\r?\n", "");
      

      We should put these lines under a platform condition

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: