Uploading files (or fixtures)

You can upload your files (a.k.a. fixtures) to your AutoTest configuration and make them available to the students in your tests.

For many assignments, students will need access to specific files to run their code. Think databases, data sets or other type of input files. You can upload these files to CodeGrade AutoTest as fixtures, which will be available throughout the entire AutoTest in the $FIXTURES folder. Follow the steps below to upload fixtures to your AutoTest configuration:

  1. Under the AutoTest tab, find the Upload fixtures option.

  2. Click the "Click here or drop file(s) add fixtures and test files." to select files you want to upload or drag and drop them.

  3. Optionally select the 'Overwrite duplicates' option to override current fixtures with the same name. Leave unchecked if you would like to make an additional copy.

  4. Press Submit to upload your fixtures. These files are now available in the $FIXTURES folder.

You will find a list of all uploaded fixtures in the Uploaded fixtures section, here you can also delete and toggle the visibility of your fixtures. The content of your fixtures are hidden to students by default.

Want to move fixtures to the current student directory? Use the following command in the Per-student setup script:

mv $FIXTURES/<fixture> .

Archives are not automatically extracted when uploading fixtures. This makes it possible to use unextracted archives as fixtures too. Use the commandstar xfvz $FIXTURES/ARCHIVE.tar.gzorunzip $FIXTURES/ARCHIVE.zipto extract archives manually.

Be careful with the permissions, we recommend runningchown -R codegrade:codegrade $FIXTURES/dirandchmod -R 750 $FIXTURES/dirafter extracting.

Last updated