-
Notifications
You must be signed in to change notification settings - Fork 68
Autograding with points stops working if any tests are edited #190
Comments
Ah, this is likely a problem in Github Classroom not the auto grading itself. I wonder if @zrdaley knows? |
cc @RyanHecht |
Never mind, it seems to work now. I do have the same problem as above. |
There is another problem, it seems that whenever we modify something in the tests, the autograding file is updated in the student's repository, but the job is not rerun, it is skipped. Students have to push another modification to see the changes. This is very frustrating. |
+1 |
Hey folks! We've opened an issue for this internally and are working on a fix. I'll update this issue when the fix has been deployed! |
This should be resolved now! :) |
Is there any way we could add a feature to be able to upload the |
@alexandruradovici You can add the The tests won't be imported into GH Classroom, but they will still run, and the points will still be reported back to GH Classroom. (It would be really nice if it was possible to import |
I still have this 'skipped' issue when I update the test cases of an assignment. I tried it on a newly created assignment, but it is still the case. I do not want to re-run workflows one by one or rely on students to do it themselves. Can you tell me how I can fix this? |
Looks like they've added I'd argue that most people would prefer @myavuz21's way, where the tests re-run whenever they are changed (i.e., even for commits made by github-classom[bot]). |
this is now closed source, right ? Just wondering, because there seem to be a few other backend-level issues, especially when it comes to using reusable workflows, which prepend/prefix the name of the action and thus modify the whole name, which in turn renders output.ts (points reporting) dysfunctional, because there's the hard-coded assumption that the autograding stage is indeed called "Autograding" (it's used as a lookup key for the octkit API call) - and not even fixing that, solves the problem - since the github classroom UI also seems to be using the hard-coded "Autograding" name internally. Assuming this is hard to get fixed (given that this stuff is now closed-source), it might make sense to mention this much more prominently in the docs ... Thanks |
Hello, it seems that you found a way to award point per passed test case. Would you be able to share how? I can only see a way to award point for a whole test suite. I would love to see how many test have pased or failed in that suite. I am using node.js and vitest. |
Autograding allows for automatically awarding points when individual tests pass. If you create the tests and don't touch them again, it works. However: If you edit any tests, all the test points become blank. If you try resetting the points for a test, the changes are not saved.
If you have a test user and clone the repository for the assignment, you can see how the points are missing by opening .github/classroom/autograding.json . All points are set to null.
This behavior has been observed by multiple users:
Minimal example to recreate:
The text was updated successfully, but these errors were encountered: