This repository contains an automated grading system built with Cypress and Docker, designed for grading student repositories.
This grading system automates the process of grading student repositories, making it efficient and consistent. It utilizes Cypress for writing end-to-end tests to evaluate the correctness of student code.
Is worth to mention that this repository works hand to hand with:
You can fork or clone here:
https://github.com/RobertoVallado/Hosting-Git-Repositories-with-Nginx.git
Tests run from the websites hosted on docker.
Before getting started, ensure you have the following installed on your system:
Usage:
./run_cygrader.sh script is designed for automated grading of student websites using the Cypress testing framework. It reads a list of student names and corresponding website ports from an input file, runs Cypress tests on each student's website, and stores the test results in individual text files.
Before using this script, make sure you have the following:
-
Cypress: The script uses Cypress for running tests.
-
An input file named
ports.txt
containing a list of student names and their corresponding website ports in the formatSTUDENT:PORTS
. -
Clone or download this repository to your local machine.
-
Ensure that Cypress is installed and configured correctly.
-
Create an input file named
ports.txt
with the list of student names and website ports. Exampleports.txt
format: -
Make the Bash script executable:
chmod +x run_cygrader.sh
Configuration:
- Modify to suit your marking needs.