Posts made by Joseph Rézeau

Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

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?

Average of ratings: -
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

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?
Average of ratings: -
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators
Maria,
Sorry but I still don't understand what you want to achieve. The examples you give do not make sense in a quiz activity. You should consider using a survey type of activity.
The questionnaire activity is perfectly compatible with your version of Moodle.
You write: "They want to do what I propose within a quiz"... Who are "they"? I would be very interested to know the explanation provided by those mysterious "they" for insisting on what looks like an illogical requirement...
Average of ratings: Useful (2)