Skip to content

Command Line

Steven J Zeil edited this page Jun 21, 2023 · 3 revisions

Launching code-grader from the command line:

java -cp code-grader.jar edu.odu.cs.zeil.codegrader.run.CLI [options]

Options are

  • -suite path

    The path to the test suite. (required)

  • -submissions path

    Path to the directory containing student submission (required)

  • -recording path

    Path to the directory where student results will be recorded (required)

  • -isrc path

    Path to the directory containing instructor-supplied source code (optional, defaults to gold directory)

    • If the path is "-", no instructor-supplied source code is copied into the stage.
  • -gold path

    Path to the directory containing a complete instructor solution. (optional)

    • If neither -isrc nor -gold are given, then no instructor-supplied code is copied into the stage.
    • If -gold is given and -isrc is given as "-", then no instructor-supplied code is copied into the stage.
  • -stage path

    Path to directory where code will be staged for testing (optional, defaults to a location withing the recording directory)

  • -manual path

    Path for directory containing scores for "tests" that are manually graded (optional)

  • -student studentID

    Restricts grading to the single student whose identifier (optional, defaults to grading all students)

  • -test testCaseName

    Restricts grading to a single test case. (optional, defaults to grading all test cases)

  • -inPlace

    Instead of copying the submitted assignment files and test data to a stage and recording directory, does all work within the submission directory. This is useful for packaging tests for students to run before submission.

    1. The -submissions directory is assumed to point directly to a student work directory instead of to a directory of submissions.
    2. The -submissions directory is used as the staging area.
    3. No Gold version is used.
    4. The -recording directory is set to the -suite directory (expected to be a directory within the -submissions directory.

Clone this wiki locally