feat(diff): auto detect testcases #13

Merged
张泊明518370910136 merged 8 commits from fix/diff into master 2025-05-15 17:47:09 +08:00
  • added support for subfolders
  • complete the duplication for *.toml file, now ta only need to specify the param for the specific one. default values are hardcoded
  • all testcases should be named as casei.in/out, with no interactions in their name in each of the subfolders, (for hidden cases and non-hidden cases, just change position and run again)
- added support for subfolders - complete the duplication for `*.toml` file, now ta only need to specify the param for the specific one. default values are hardcoded - all testcases should be named as `casei.in/out`, with no interactions in their name in each of the subfolders, (for hidden cases and non-hidden cases, just change position and run again)
李衍志523370910113 added 7 commits 2025-05-14 21:31:54 +08:00
feat(diff): add auto detect testcases feature
Some checks failed
build / build (push) Failing after 1m38s
e4246ecf45
fix(diff): use list instead of set to past tests
Some checks failed
build / build (push) Failing after 1m38s
890120c479
fix: master conflict
Some checks failed
build / build (push) Failing after 1m41s
45903ae308
fix: pytest
Some checks failed
build / build (push) Failing after 1m42s
a4717268ec
fix: sort default cases
Some checks failed
build / build (push) Failing after 3m22s
e775992e5d
Merge branch 'master' into fix/diff
All checks were successful
build / build (push) Successful in 1m48s
ba456cf7f0
feat: support for subfolder change param
All checks were successful
build / build (push) Successful in 1m50s
build / build (pull_request) Successful in 1m37s
a8a7fd47a0
张泊明518370910136 was assigned by 李衍志523370910113 2025-05-14 21:32:15 +08:00
李衍志523370910113 self-assigned this 2025-05-14 21:32:16 +08:00
张泊明518370910136 requested changes 2025-05-15 14:29:35 +08:00
Dismissed
@ -169,0 +179,4 @@
if any(case.endswith(other) for other in task_stage.cases)
]
)
print(default_cases)

remove it

remove it
jon-lee marked this conversation as resolved
@ -206,0 +225,4 @@
parser_case = result.DiffCasesConfig(
outputs=[
result.DiffOutputConfig(
score=5, # default score

move it to const.py

move it to `const.py`
Author
Member

add DEFAULT_CASE_SCORE now

add `DEFAULT_CASE_SCORE` now
jon-lee marked this conversation as resolved
李衍志523370910113 added 1 commit 2025-05-15 17:08:59 +08:00
style: use const
All checks were successful
build / build (push) Successful in 1m53s
build / build (pull_request) Successful in 1m53s
391d61d006
张泊明518370910136 changed title from fix/diff to feat(diff): add auto detect testcases feature 2025-05-15 17:46:28 +08:00
张泊明518370910136 changed title from feat(diff): add auto detect testcases feature to feat(diff): auto detect testcases 2025-05-15 17:46:42 +08:00
张泊明518370910136 approved these changes 2025-05-15 17:46:50 +08:00
张泊明518370910136 merged commit 8a6c34f3e9 into master 2025-05-15 17:47:09 +08:00
张泊明518370910136 deleted branch fix/diff 2025-05-15 17:47:17 +08:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: JOJ/JOJ3-config-generator#13
No description provided.