Guidance/advice on setting point scores for GitHub Classroom assignments with multiple tests #122791
Replies: 2 comments
-
I have the same problem -- people have requested this feature in education/autograding#146 -- but that repo is archived on May 2, 2024, with no info about what the next step is. Fingers crossed that this will exist next year. Since I have like 48 tests spread out into multiple files, I posted an issue (with a workaround) in the node example repo that has a bash script that CoPilot wrote for me (several iterations) that will try to find the test files and generate a YAML that runs in a GitHub Action. classroom-resources/autograding-example-node#4 If you make each test be a single file, it can work. With 6 tests, you could also just define 6 test files (commands) for the assignment,, such as |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply. Glad it's not just me. You're right, it would be overly tedious to set up with separate files, and my later assignments have more than six tests. To me, this issue seems like something that should be fixable, so fingers crossed for something soon. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
Hi,
I have successfully run an intro to programming module using GitHub classroom with 5 separate assignments.
It's in JS/NodeJS. I have set up and used Autograding using Jest.
Let's take the first assignment as an example. When setting up the autograding, I set it to a total of 6 points. This is because there are 6 tests.
Here is a public copy of the first assignment.
However, when commits by students are made to the classroom, if they pass ALL 6 tests, they get 6/6. However if they pass 5 of the tests, GitHub classroom reports as 0/6. I.e. they only get the points score if they pass all 6 tests.
What tweak do I need to make GitHub classroom report 4/6 passed (and 4 points awarded), and so on? I assume it is an issue with my xxx.test.js file, or not?
Many thanks, solving this would make the next run of this module even sweeter. 👍
Beta Was this translation helpful? Give feedback.
All reactions