autograder

command module
v0.0.0-...-9f22dab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2022 License: MIT Imports: 4 Imported by: 0

README

Autograder

Build Status

Autograder evalutes python scripts uploaded to the server and checks the output. All evaluations are done in docker containers for code isolation. If a user submits malicious code it will be executed inside the container.

Requirements to run

  • Docker installed
  • npm installed

Run app

If you want to run a redis instance set in config.yaml

Run as a docker contianer
cd autograder/server/

docker build . -t autograder
Build server
make all
Run go server
go get -d autograder

go run main.go
Installing js libraries
These are js libraries for the ui

# install gulp
npm install gulp --save-dev


# install bower
npm install -g bower

# run in project dir
gulp

How Configure tests

In config.yaml

Example config of a program testing stdout

labs:
    - 

Example config of a program testing functions

labs:
    -

Multiple expected values

labs:
    -

Run Tests

Run go server test
go test
Run python marker tests
python -m pytest marker/tests

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL