Skip to content

Releases: gradescope/gradescope-utils

v0.5.0

17 Oct 21:59
f1017f6
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.4.0...v0.5.0

Add post_processor callback to JSONTestRunner

11 Jun 18:43
Compare
Choose a tag to compare

Adds a callback function to JSONTestRunner which can be used to modify the autograder results at the end of the test suite but before they are written to disk.

Usage Example:

def post_process(results):
    results["score"] = 9001

if __name__ == '__main__':
    suite = unittest.defaultTestLoader.discover('tests')

    JSONTestRunner(visibility='visible', post_processor=post_process).run(suite)

#16

Add `@number` decorator

14 Jan 00:46
Compare
Choose a tag to compare

The @number decorator allows setting the "number" field on tests, which is used to sort the tests when displayed on Gradescope. See the format specification for more information.

Allow tests to give partial credit

27 Sep 00:02
Compare
Choose a tag to compare

Adds a new decorator, @partial_credit, which allows setting the final score directly for cases where you want to give partial credit.

When using it, you don't need to use the @weight decorator (you pass in the test weight to @partial_credit).

Allow check_submitted_files to take in base directory

25 Sep 22:41
Compare
Choose a tag to compare

Visibility options for JSONTestRunner

04 Aug 00:24
Compare
Choose a tag to compare

JSONTestRunner now accepts options for setting the top-level visibility and stdout_visibility fields (see the docs for more details).

check_submitted_files helper function

04 Aug 00:22
Compare
Choose a tag to compare

Adds a utility function that checks for the existence of specified files within the submission.

v0.2.2: Leaderboards!

28 Sep 13:04
Compare
Choose a tag to compare

Finalized leaderboard decorator. Leaderboard functionality is now available on Gradescope.

Leaderboards!

28 Sep 02:16
Compare
Choose a tag to compare
Leaderboards! Pre-release
Pre-release

Adds a decorator for leaderboards (not yet available on Gradescope).

v0.1.7: Merge branch 'cawka-master'

28 Sep 02:14
Compare
Choose a tag to compare

Add visibility decorator