Skip to content

Cypress Grading system automates the process of grading student repositories, making it efficient and consistent. It utilizes Cypress, BASH & works best when Docker is implemented.

Notifications You must be signed in to change notification settings

RobertoVallado/Cypress-Grader2.0

Repository files navigation

Automated Grading System with Cypress

This repository contains an automated grading system built with Cypress and Docker, designed for grading student repositories.

Table of Contents

Introduction

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:

Hosting-Git-Repositories-with-Nginx

You can fork or clone here:

https://github.com/RobertoVallado/Hosting-Git-Repositories-with-Nginx.git

Tests run from the websites hosted on docker.

Setup

Before getting started, ensure you have the following installed on your system:

Usage

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.

Prerequisites

Before using this script, make sure you have the following:

  1. Cypress: The script uses Cypress for running tests.

  2. An input file named ports.txt containing a list of student names and their corresponding website ports in the format STUDENT:PORTS.

  3. Clone or download this repository to your local machine.

  4. Ensure that Cypress is installed and configured correctly.

  5. Create an input file named ports.txt with the list of student names and website ports. Example ports.txt format:

  6. Make the Bash script executable:

chmod +x run_cygrader.sh

Configuration

Configuration:

  • Modify to suit your marking needs.

About

Cypress Grading system automates the process of grading student repositories, making it efficient and consistent. It utilizes Cypress, BASH & works best when Docker is implemented.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published