I'm using testNG and Selenium to run multiple functionals test of my application.
To have more stable test i decided to include the firefox binaries inside the project folder and call this specific binary and not the default browser.
The problem i encounter now is that if someone want to use my test, he has to import the project in his eclipse, relink the java 8 library, install TestNG on his eclipse, add the selenium jar to the project and finaly create the testNG configuration and finaly run it with the choosen xml. I wanted to know if this possible to simple transform project into a jar file that i will call by command line, something like :
java SeleniumTestNGTest myXmlFile.xml
Would this way avoid the different setting wrote above ? Can we call a testNG test from jar using java ? Would firefox be runnable from the jar file ?
EDIT 1 : A good suggestion in the comment is to migrate my source to a maven project. But still the same questions remains. Would maven be able to manage the setting that need my test project ? (wich are the selenium jar, the java 8 library, the testNG jar and running the firefox browser)