Joseph Rézeau
Posts made by Joseph Rézeau
Maria,
Just found out that you asked a very similar question in this post, on May 29th. One of the replies to that post suggested to use the Questionnaire activity.
I'm afraid it's a waste of time for all the well-meaning forum members here who are trying to help you out if you (or your organisation?) refuse to be persuaded that you are on the wrong track. You need to accept that the Quiz activity is not the right tool to achieve what you want. In that May 29th discussion you replied 3 times "Thanks a lot" but to what effect?
Thanks Davo and Eloy for your replies.
Adding parent::setUp(); and parent::tearDown(); does the trick.
Not sure what this means "those errors can be auto-fixed with phpcbf
99% of times".
Hi!
When running Moodle-CI on my github regex question type I am getting these error messages:
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------
44 | ERROR | [x] The setUp() method in unit tests must always call to parent::setUp().
| | (moodle.PHPUnit.ParentSetUpTearDown.MissingSetUp)
48 | ERROR | [x] The tearDown() method in unit tests must always call to parent::tearDown().
| | (moodle.PHPUnit.ParentSetUpTearDown.MissingTearDown)
No idea what this means nor how I can fix the problem. Any idea anyone?
Hi fellow developers!
Now that I've managed to get Behat and Unit Tests to work on my local Windows machine environment, I continue to experiment. All is OK locally but I'm still getting error messages when I run Moodle-CI actions on my github.
My regexp question type is using a small library, combinatorics.php which does not follow the standard Moodle pattern. So I get this error message: 1 | ERROR | [x] Moodle boilerplate not found (moodle.Files.BoilerplateComment.NoBoilerplateComment)
It took me some time to realize what that "boilerplate" error meant, but now I've got it. Now the questions is:
- should I simply ignore this error message?
- should I re-write the code in that combinatorics.php library, including the "boilerplate" pattern and fixing the code which triggers many warnings?
- is there a general rule to follow when including non-Moodle PHP files in one's plugin?