Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.9.7
-
Fix Version/s: None
-
Component/s: Unit tests
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE
Description
Hi,
I noticed that the recommendation for [[Unit tests]] is "not " to run this "report" on a production site because it takes a long time and could damage the database. The "damage" is red flag for me.
If this is true, it should be a high priority to place a warning on the " Run the unit tests " filter page, AND create a help link.
Perhaps this feature should also have a server setting, with the default set to "off", so it does not appear in the report menu for the non-developer site administrators.
Best Chris
.
Just a followup. demo.moodle.net site administration block>reports>Unit tests screen does not give any cautions. The help link goes to admin/report/unittest/index which is a page that needs to be created, so there is no help there.
I am still concerned that some new Admin may run the report and not realize what is going to happen. What if they add contributed code and things go wrong when they innocently check the "wrong box". I think this should turned off as a default in a site setting, so that someone interested in development has to knowingly turn it on and thus assume responsibility for it being visible in Reports.