classroom-resources / autograding-example-cpp

GitHub Classroom autograding example repo with C++ and Catch.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Autograding Example: C++

This example project is written in C++, and tested with make and Catch2.

The assignment

The tests are failing right now because of a bad base case in the factorial function. Correcting the base case will fix the tests.

Setup command

N/A

Run command

make test

Notes

  • g++ can be used to compile and link C++ applications for use with existing test harnesses or other C++ testing frameworks.
  • If students push a.out files, the autograder may attempt to run that version instead of a newly compiled binary. If this happens, and your student isn't on Linux, the script will crash. To fix this issue, it's recommended to clean before building.

About

GitHub Classroom autograding example repo with C++ and Catch.


Languages

Language:C++ 100.0%Language:Makefile 0.0%