-
Notifications
You must be signed in to change notification settings - Fork 40
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
Accept any _testcase as valid #322
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #322 +/- ##
==========================================
+ Coverage 31.07% 33.12% +2.05%
==========================================
Files 71 71
Lines 3215 3215
==========================================
+ Hits 999 1065 +66
+ Misses 2216 2150 -66
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
834649d
to
c0a72e4
Compare
Historically we had a blur between `_test` and `_testcase`, but in recent versions we have largely solved this. We now expect: - every test class name to be suffixed with `_test` - every test class to be final - every test class to extend a testcase with class name suffixed `_testcase` - every testcase class to be abstract Given these parameters, which have been in place for some time and are checked with phpcs, we can move away from a hardcoded list of accepted testcases, and move towards a regular expression based on the name. There are still some uses of the legacy names, but we can reduce them and support any _testcase class.
d7ba15e
to
03e3425
Compare
externallib_advanced_testcase | ||
googledocs_content_testcase | ||
grade_base_testcase | ||
lti_advantage_testcase | ||
manage_category_test_base | ||
messagelib_test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like we can remove the following, and the test will still pass:
messagelib_test
mod_quiz\\\\attempt_walkthrough_from_csv_test
Is there a reason they were not removed here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I imagine that all remaining base classes are because we still aren’t completely free from them, specially in old branches. Cannot wait to have all them under the _testcase unique umbrella.
Historically we had a blur between
_test
and_testcase
, but in recent versions we have largely solved this. We now expect:_test
_testcase
Given these parameters, which have been in place for some time and are checked with phpcs, we can move away from a hardcoded list of accepted testcases, and move towards a regular expression based on the name.