-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvements for test cases #2305
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2305 +/- ##
==========================================
- Coverage 46.76% 46.32% -0.45%
==========================================
Files 251 253 +2
Lines 13317 13534 +217
==========================================
+ Hits 6228 6269 +41
- Misses 7089 7265 +176 ☔ View full report in Codecov by Sentry. |
Sorry, but I've found a little bug: The "pretest" are executed prior to regular tests, so the input / output numeration between the statement and the judge results won't match. I think that the best option to fix this is to implement this issue: #2031 If you agree, I will create a new PR to implement #2031 and, once integrated, this one will be ready to be integrated too. Thanks and kind regards, |
Well... I see that the #2031 issue is something bigger than I imagined, and I don't feel ready to address it right now. Maybe I should reimagine how the pretest behavior should be treated because:
Sorry, I have so many doubts ^_^U |
e9c2173
to
e295fd4
Compare
Hi there! Sorry, I've been a bit out but I'm now ready to finish this implementation. I decided to proceed adding a new column to tests in order to mark them as private, so those private tests's inputs and outputs wont be displayed at the problem statement. Also, pretests will be displayed prior to regular tests in order to avoid correlation issues between the judge results and the statement order. I also made changes in my devel environment so it will be easier for me to squash the commits and send to you the PR with no conflicts. Please, feel free to contact me if you need further information. Cheers! |
…lso able to hide test-cases from the problem statement respecting the judge order (pretest firsts). fixes
0f27045
to
8fec955
Compare
Hi again, PR ready to review and merge (if you like). Cheers! |
Related with: #2298
When entering on 'edit test cases', if no data has been entered through the site but the test-cases have been created manually into the file system, a warning will be displayed:
Also, a new option has been added to the form:
Another addition is the ability to automatically display the test-cases after the problem statement if needed:
All the test-cases will append after the problem statement automatically, avoiding inconsistencies between the files and the displayed data:
Notice that "pretests" will be displayed first (in order to avoid inconsistencies between the problem statement and the results sent to the judge) and, also, a new option has been added in order to make a test "private":
Notice that private test will be displayed as hidden to avoid missing the judge test's correlation:
All these changes are an addition, completely optional, and does not alter the default behavior of the base DMOJ.
I hope you like it, have nice holidays!
Fher