I'm using Ivy.xml for dependency management Adding the library(ivy.xml) to the build path worked for me Now I can just right click on test class and run as Junit test no need to configure