I am trying to run Junit test cases from command line.
I fire my tests in windows system from a folder D:\WorkSpace\Testspace\MyProject\target like this :
java -cp "classes;junit;dependency\*" org.junit.runner.JUnitCore com.abc.TestA
This is a maven project. It throws the following error :
2019-07-09T17:59:41.330 ERROR [com.abc.IOUtil] - FileNotFoundException Occurredjava.io.FileNotFoundException: D:\WorkSpace\Testspace\MyProject\target\cde\FGH\SomeRandomFile.xml (The system cannot find the path specified)IOUtil
This cde folder containing the xmls is also inside the target folder from which I am firing my test commands.
Is there any way to include the resource files in java command line?