autograder.cli.testing

The autograder.cli.testing package contains tools to test, debug, and develop courses and assignments.

This package contains the following CLI tools:


autograder.cli.testing.generate-test-data

Generate test data by starting the specified server and running all tests in this project.

usage: python3 -m autograder.cli.testing.generate-test-data
       [-h] [--version] [--testing-mode]
       [--server-output-file SERVER_OUTPUT_PATH]
       [--server-stop-command SERVER_STOP_COMMAND] [--startup-skip-identify]
       [--startup-wait STARTUP_WAIT_SECS]
       RUN_SERVER_COMMAND

autograder.cli.testing.setup-grading-dir

Setup a directory as if it is being graded. This is useful for seeing what the autograder will see right before grading begins.

usage: python3 -m autograder.cli.testing.setup-grading-dir [-h] [--version]
                                                           [--testing-mode] -a
                                                           ASSIGNMENT -s
                                                           SUBMISSION
                                                           [-o OUT_DIR] [-ss]

autograder.cli.testing.test-remote-submissions

Submit multiple assignments to an autograder and ensure the output is as expected.

usage: python3 -m autograder.cli.testing.test-remote-submissions
       [-h] [--version] [--server SERVER] [--user USER] [--pass PASS]
       [--course COURSE] [--assignment ASSIGNMENT] [--message MESSAGE]
       [--allow-late] [--testing-mode]
       SUBMISSIONS_DIR

autograder.cli.testing.test-submissions

Run a grader against multiple test assignments and ensure the output matches the expected output.

usage: python3 -m autograder.cli.testing.test-submissions [-h] [--version]
                                                          [--testing-mode]
                                                          [-a ASSIGNMENT] -s
                                                          SUBMISSIONS

autograder.cli.testing.verify-test-data

Verify test data by starting the specified server and testing HTTP exchanges against it.

usage: python3 -m autograder.cli.testing.verify-test-data [-h] [--version]
                                                          [--testing-mode]
                                                          [--server-output-file SERVER_OUTPUT_PATH]
                                                          [--server-stop-command SERVER_STOP_COMMAND]
                                                          [--startup-skip-identify]
                                                          [--startup-wait STARTUP_WAIT_SECS]
                                                          RUN_SERVER_COMMAND
                                                          TEST_DATA_DIR
1"""
2The `autograder.cli.testing` package contains tools to test, debug, and develop courses and assignments.
3"""