I have some testcases for a program, so i want to start all of them, one after one. I use eclipse as IDE, so it would be great to have the testcases and so on right in there and dont need to write a bash script or so to do this job (i could and did some times)
So is there any possibility that i can start my program with different parameters from eclipse? My program will exit when the testcase is read and processed, then the next programm should start (best would be on the same virtual console, so i can see the output of both)
For test cases, use junit, which is already included in eclipse.
If you want to run you java programm with different parameters, simply call the
mainmethod directly. Here’s a JUnit 4 snippet: