Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-30098

Fix tests using CoreFeature in eclipse

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core, Tests
    • Team:
      AT
    • Sprint:
      nxAT 11.x.33
    • Story Points:
      1

      Description

      When running tests using the CoreFeature in eclipse, the following stack trace can be seen (example running TestDublinCoreStorage):

      java.lang.AssertionError: Error while invoking start on features: [org.nuxeo.runtime.test.runner.MDCFeature, org.nuxeo.runtime.test.runner.ConditionalIgnoreRule$Feature, org.nuxeo.runtime.test.runner.RandomBug$Feature, org.nuxeo.runtime.test.runner.WithFrameworkPropertyFeature, org.nuxeo.runtime.test.runner.RuntimeFeature, org.nuxeo.runtime.cluster.ClusterFeature, org.nuxeo.runtime.test.runner.TransactionalFeature, org.nuxeo.runtime.stream.RuntimeStreamFeature, org.nuxeo.ecm.core.api.local.DummyLoginFeature, org.nuxeo.ecm.core.work.WorkManagerFeature, org.nuxeo.ecm.core.bulk.CoreBulkFeature, org.nuxeo.ecm.core.test.CoreFeature]
      	at org.nuxeo.runtime.test.runner.FeaturesRunner.apply(FeaturesRunner.java:253)
      	at org.nuxeo.runtime.test.runner.FeaturesRunner.apply(FeaturesRunner.java:225)
      	at org.nuxeo.runtime.test.runner.FeaturesRunner.start(FeaturesRunner.java:205)
      	at org.nuxeo.runtime.test.runner.FeaturesRunner$BeforeClassStatement.evaluate(FeaturesRunner.java:322)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
      	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:89)
      	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:41)
      	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:542)
      	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:770)
      	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:464)
      	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:210)
      	Suppressed: java.lang.AssertionError: deployment contrib OSGI-INF/test-repo-repository-h2-contrib.xml not found
      		at org.junit.Assert.fail(Assert.java:89)
      		at org.junit.Assert.assertTrue(Assert.java:42)
      		at org.junit.Assert.assertNotNull(Assert.java:713)
      		at org.nuxeo.ecm.core.test.StorageConfiguration.getRepositoryContrib(StorageConfiguration.java:332)
      		at org.nuxeo.ecm.core.test.CoreFeature.start(CoreFeature.java:180)
      		at org.nuxeo.runtime.test.runner.FeaturesRunner.lambda$5(FeaturesRunner.java:205)
      		at org.nuxeo.runtime.test.runner.FeaturesRunner.apply(FeaturesRunner.java:239)
      		... 12 more
      

      This is linked to the fact that bundle for module "nuxeo-core-storage-sql-test" is confused with the test bundle for module "nuxeo-core-storage-sql" with the same name.

      Renaming the test bundle to make sure it's unique fixes the issue.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                atchertchian Anahide Tchertchian
                Reporter:
                atchertchian Anahide Tchertchian
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: