Posts made by Joseph Rézeau

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

In the Moodle Cloze questions, the feedback is provided when the student hovers the mouse over the green tick (correct response) or the red cross (incorrect response). See attached picture.

 

 

Average of ratings: Useful (3)
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

Got it! Just had a rubber duck moment... 🦆

In my command line I wrongly used the -v param to get a verbose output. This is not needed when using the --format=pretty param. I expect that the combination of those 2 params on the same command line caused the confusion? And then the behat test runs the very first Behat test it finds in the moodle site, i.d. "moodletest\admin\tool\policy\tests\behat\acceptances.feature"

Actually the doc at https://moodledev.io/general/development/tools/behat/running says: "Add -vv command-line option to get very verbose output." But if I add that param when I run the behat command line it says: "The "--vv" option does not exist."

Never mind, problem solved now.

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

Sometimes but not all the time, when I run a behat test on my local Moodle platform, it starts with the @tool @tool_policy tests, which takes up quite some time, and is superfluous. Where does this come from? And how can I remove that unwanted call to @tool_policy?

PS C:\wamp64\www\moodletest> vendor\bin\behat --config C:\wamp64\www\moodledatatest_behat\behatrun\behat\behat.yml --format=pretty  -v C:\wamp64\www\moodletest\question\type\match\tests\behat\add.feature
@tool @tool_policy
Feature: Viewing acceptances reports and accepting on behalf of other users
  In order to manage user acceptances
  As a manager
  I need to be able to view acceptances and accept on behalf of other users

etc.

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

"I have attached in the last post a screenshot to show that problem."

An image of the problem helps very little to understand & diagnose your problem. Just think of the following scenario: Your car worked fine last week but this morning it refuses to start. You take a photo of your car and send an e-mail to your garage mechanic with that photo and write "my car worked fine last week but this morning it refuses to start, please help!" What do you think your garage mechanic will think of that?

PS.- I think the original author of the garage mechanic was our friend Oliver, so credits to him.