Running the A3 Test Suite
- The test suite is in A3ComplianceTool_v5.jar. Add this to your Eclipse build path.
- The main class is cs2110.assignment3.test.A3ComplianceTool
- The main class takes two arguments:
- The path to your assignment JAR file
- The path to a directory containing animal .dat files
- There is an additional step for this assignment: After you pass the test suite, copy and paste the test suite's output into a text file. You will also upload this file to CMS along with your assignment.
Notes
- It is sufficient to only test the output of your program as described below. If you do so, though, please double-check that your .jar contains source files.
- The test suite checks your console-mode output formatting, but it doesn't check if your numbers are actually correct.
- We're very strict about formatting. Before you even run the test suite, make sure your formatting matches that of the example at the end of the assignment escription.
- Tip: You can run the test suite from a command line as follows:
java -jar A3ComplianceTool_v5.jar my_assignment.jar AnimalData
- The test suite can also be run only on your output file using the -output argument. Steps:
- Redirect your program's output to a file. This can be done by checking "File" under the Run Configuration's "Common" tab in Eclipse.
- java -jar A3ComplianceTool_v5.jar -output output.txt