Tests are failing in openmrs-core


(Dilantha Silva) #1

Hi, Im trying to setup openmrs-core as mentioned in here

But below tests are failing in openmrs-api for some reason. Has anyone experienced the same issue ?

Failed tests: ModuleFactoryTest.loadModules_shouldNotStartTheLoadedModules:165 expected:<3> but was:<0> ModuleFactoryTest.loadModules_shouldSetupRequirementMappingsForEveryModule:147 expected:<3> but was:<0> Tests in error: ModuleExtensionsTest.getExtensions_shouldNotFailExpandingAnExtensionNameCausingANoClassDefinitionFoundError:96 » Module ModuleFactoryTest.loadModule_shouldAlwaysLoadModuleIfReplacementIsWanted:76->loadModule:179 » Module ModuleFactoryTest.loadModule_shouldLoadANewerVersionOfTheSameModule:89->loadModule:179 » Module ModuleFactoryTest.loadModule_shouldLoadModuleIfItIsCurrentlyNotLoaded:53->loadModule:179 » Module ModuleFactoryTest.loadModule_shouldNotLoadAnOlderVersionOfTheSameModule:101->loadModule:179 » Module ModuleFactoryTest.startModule_shouldStartAllDependencies:115->loadModule:179 » Module ModuleFileParserTest.moduleFileParser_shouldFailCreatingParserFromFileIfInputStreamClosed:92 » FileNotFound ModuleFileParserTest.parse_shouldParseValidLogicModuleFromFile:150 » Module Un… ModuleFileParserTest.parse_shouldParseValidXmlConfigCreatedFromInputStream:105 » FileNotFound ModuleUtilTest.expandJar_shouldExpandDirectoryWithParentTreeIfNameIsDirectoryAndKeepFullPathIsTrue:631 » FileNotFound ModuleUtilTest.expandJar_shouldExpandDirectoryWithoutParentTreeIfNameIsDirectoryAndKeepFullPathIsFalse:652 » FileNotFound ModuleUtilTest.expandJar_shouldExpandEntireJarIfNameIsEmptyString:670 » FileNotFound ModuleUtilTest.expandJar_shouldExpandEntireJarIfNameIsNull:686 » FileNotFound … ModuleUtilTest.expandJar_shouldExpandFileWithParentTreeIfNameIsFileAndKeepFullPathIsTrue:702 » FileNotFound ModuleUtilTest.getPackagesFromFile_shouldSkipOptionalFoldersIfJarFile:746 » FileNotFound


(Daniel Kayiwa) #2

Can you share the full log at pastebin.com?


(Dilantha Silva) #3

@dkayiwa https://pastebin.com/A6ihiFMA


(Daniel Kayiwa) #4

Can you remove space from your build path open source and compile again?


(Dilantha Silva) #5

Thanks a lot. It worked. Now after running mvn jetty:run it gives me HTTP ERROR 404 when trying to access through http://localhost:8080/openmrs . Here is the full log https://pastebin.com/jN0FHmj5


(Daniel Kayiwa) #6

Compile and run it again.


(Dilantha Silva) #7

I tried it several times. Still the same


(Daniel Kayiwa) #8

Share the current full log at pastebin.com


(Dilantha Silva) #9

https://pastebin.com/UsNEJ0ue


(Daniel Kayiwa) #10

Run from the webapp folder


(Dilantha Silva) #11

Thanks a lot. I have missed that step. now its working :slight_smile: