You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because when we try to force config in our config files instead of changing anything in config-dist.php of this plugin $CFG->forced_plugin_settings['qtype_coderunner']['jobesandbox_enabled'] = '1';
these forced configs finally will be overridden by what in function setup_test_sandbox_configuration()
Thus, the unit tests keep failing on our site.
Also, the way of using set_config in the config file might cause potential problems. It set the value directly in the file.
I guess it might be better to set the config value as constant variables and allow us to define constant variables somewhere else later (such as top-level config.php, etc).
Could you please reconsider these parts of the code and fix them? Thanks very much.
Hello,
Thanks for working on this plugin.
We found that it might be not standard in Moodle that directly use the config files in the sandbox set-up.
moodle-qtype_coderunner/tests/test.php
Lines 51 to 57 in 497ad6f
Because when we try to force config in our config files instead of changing anything in config-dist.php of this plugin
$CFG->forced_plugin_settings['qtype_coderunner']['jobesandbox_enabled'] = '1';
these forced configs finally will be overridden by what in function
setup_test_sandbox_configuration()
Thus, the unit tests keep failing on our site.
Also, the way of using set_config in the config file might cause potential problems. It set the value directly in the file.
moodle-qtype_coderunner/tests/fixtures/test-sandbox-config-dist.php
Lines 37 to 47 in 497ad6f
I guess it might be better to set the config value as constant variables and allow us to define constant variables somewhere else later (such as top-level config.php, etc).
Could you please reconsider these parts of the code and fix them? Thanks very much.
Reference reading when I look into the issue, maxima works on our site successfully. stack plugin doesn't set these values to be fixed values.
qytpe_stack plugin:
*https://github.com/maths/moodle-qtype_stack/blob/master/tests/fixtures/test_maxima_configuration.php
*https://github.com/maths/moodle-qtype_stack/blob/master/doc/en/Developer/Unit_tests.md
Thanks again.
Qi
The text was updated successfully, but these errors were encountered: