classroom-resources / autograding-example-cpp

GitHub Classroom autograding example repo with C++ and Catch.
13 stars 21 forks source link

How do I use this repository #2

Open erelsgl opened 3 years ago

erelsgl commented 3 years ago

Sorry for the newbie question.. I am trying to make the first exercise in my Github Classroom course. I got here from the "Add autograding tests" tab in the exercise settings. What exactly do I do with this repository? Should I construct a similar repository, with all the tests needed for the auto-grading, and use it as the answer to the tab "Add a template repository to give students starter code" tab? If not, then where exactly should I put the automatic tests that I write?

erelsgl commented 3 years ago

An additional question is: how is the grade calculated, from the results of the autograding? Is it just the percent of passing tests?

MuhammadMoustafa commented 2 years ago

Yes exactly, you need to provide a template folder when you create an assignment. or ask each student to add these files, but this is unneeded hassle. creating a template folder will give you the flexibility to add stub functions and ask your students ti fill it so they don't mess up the repo.

The bottom line here is that the files used by -Run command- exists.

For the second question: when you add a test, There is a text box with label Points. If you need grade each test separately, you may add multiple test files, but make sure that you write the right command in "Run command" Text box.