[Testing:Autograding] Add non-zero depends_on_points test#12635
Conversation
|
Hey @Mohit23490 , thank you for your contribution! Please update your PR title to use our required format Please also use our PR description template: Also, please address merge conflicts. Once this pull request adheres to all Submitty conventions, we may run the CI on your PR. If the CI passes we will proceed with a full review. |
eaa0a19 to
4d448e8
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #12635 +/- ##
============================================
- Coverage 21.64% 21.64% -0.01%
Complexity 9861 9861
============================================
Files 268 268
Lines 36918 36920 +2
Branches 495 495
============================================
Hits 7990 7990
- Misses 28437 28439 +2
Partials 491 491
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
The JavaScript lint errors on lines 2-12 of gradeable.spec.js appear to be pre-existing indentation issues in the upstream code and are not related to my changes. My changes only add a new test at the end of the file. |
There was a problem hiding this comment.
Is there a reason your deleting existing tests instead of just adding new tests to the end?
There was a problem hiding this comment.
Thank you for the review.
I apologize for the confusion — this was unintentional during merge conflict resolution. I will restore the existing tests immediately.
There was a problem hiding this comment.
Apologies again for the confusion. The existing tests were accidentally removed during merge conflict resolution — it was not intentional. I have now restored all original tests and added my new test at the end of the file without modifying anything else.
I am also working on setting up Submitty locally to be able to run and verify the tests before pushing. I will make sure this does not happen again
dandrecollins07-ctrl
left a comment
There was a problem hiding this comment.
Verified that the new test correctly covers non-zero eg_depends_on_points behavior using a 7-point threshold instead of the original 0. Fixed lint issues encountered during review. Approving.
williamschen23
left a comment
There was a problem hiding this comment.
looks good, tested and worked well
IDzyre
left a comment
There was a problem hiding this comment.
One small request for the Cypress test portion.
mattLif
left a comment
There was a problem hiding this comment.
Tested Cypress test and it passed and cleaned up successfully. Code for test and sample data look good, and it seems like the requested changes have been made. Only CI that fail are flaky on main. I'm approving.
Why is this Change Important & Necessary?
Fixes #11696
The existing locked gradeable test only covers eg_depends_on_points: 0.
This PR adds tests for non-zero depends_on_points to ensure autograding
point thresholds are correctly enforced.
What is the New Behavior?
locked_homework_pointswith eg_depends_on_points: 7in testing.yml
the locked gradeable
What steps should a reviewer take to reproduce or test the bug or new feature?
Automated Testing & Documentation
Cypress end-to-end test added in grades.spec.js.
No documentation changes needed.
Other information
Not a breaking change. No migrations needed. No security concerns.