Hi
Has someone succeed to run tests in the develop branch?
I’m trying to run them but after a long time running them I get some OutOfMemory errors. After them some test seem running, but are stalled for several minutes, so probably affected by the previous errors.
Running org.fao.geonet.api.records.attachments.MetadataResourceDatabaseMigrationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.034 sec - in org.fao.geonet.api.records.attachments.MetadataResourceDatabaseMigrationTest
Running org.fao.geonet.guiservices.csw.SetTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.383 sec - in org.fao.geonet.guiservices.csw.SetTest
Running org.fao.geonet.guiservices.sampledata.SampleDataAddIntegrationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 19.039 sec - in org.fao.geonet.kernel.search.LuceneSearcherGeomTest
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “main”
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 17.398 sec - in org.fao.geonet.guiservices.sampledata.SampleDataAddIntegrationTest
Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 56.828 sec - in org.fao.geonet.services.metadata.schema.SchematronCriteriaGroupServiceIntegrationTest
Running org.fao.geonet.services.metadata.schema.SchematronCriteriaTypeServiceTest
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “main”
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.002 sec - in org.fao.geonet.services.metadata.schema.SchematronCriteriaTypeServiceTest
Running org.fao.geonet.services.register.SelfRegisterTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.013 sec - in org.fao.geonet.services.register.SelfRegisterTest
Running org.fao.geonet.services.statistics.SearchStatisticsTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.979 sec - in org.fao.geonet.services.statistics.SearchStatisticsTest
Running org.fao.geonet.services.user.UserListIntegrationTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.796 sec - in org.fao.geonet.services.user.UserListIntegrationTest
Running org.fao.geonet.services.user.UserUpdateIntegrationTest
I’m using Java 7 and I think I have a pretty high memory configuration setup for maven:
export MAVEN_OPTS=“-Xmx2048M -XX:MaxPermSize=1024M”
And running the tests with mvn test in the root folder of GeoNetwork.
Would be nice to hear from others, just to discard if it’s a issue in my system.
Regards,
Jose García