How to test SOCCER
The SOCCER Tester
contains a suite of JUnit testcases to test your model.
To run the test cases, follow the following steps (this is written
assuming that you're using Eclipse).
- Add JUnit to your project
(Project -> Properties -> Java Build Path -> Libraries -> Add
Library -> JUnit).
- Add the soccerTest.jar to your project
(Project -> Properties -> Java Build Path -> Libraries -> Add
external Jar).
- Run the simulator, selecting your model and choosing test mode.
- Click "go" on the simulator chooser UI.
- Run
test.TestMain
from the test jar.
- If you're using a view that self updates (e.g., the dpeters view posted
earlier) you'll see the players move around a bit as the test cases are
executed. When it's done the console for the TestMain will give a report
about the test cases passed and failed.
Back to 9874 homepage
Last modified:
$Date: 2008-03-07 23:51:53 -0330 (Fri, 07 Mar 2008) $ ($Revision: 377 $)
by $Author: dpeters $