Behat requirement not satisfied: blacklisted feature not found with Moodle 3.5.1

Behat requirement not satisfied: blacklisted feature not found with Moodle 3.5.1

by Virág Harangozó -
Number of replies: 5

Since moodle v3.5.1 has been realised  when I try to initialise behat with  

php admin/tool/behat/cli/init.php

I get the following error message:

Acceptance tests site installed

Behat requirement not satisfied: Blacklisted feature "{root_directory_path}/plugins/theme/{MY_THEME}/tests/behat/my_feature.feature" not found.

Error enabling site


So it seems to me the site is installed but something is wrong with blacklists... I don't use blacklist in my suite and I did not find that list which contains my theme feature files. (I've only found theme/boost/tests/behat/blacklist.json https://github.com/moodle/moodle/blob/master/theme/boost/tests/behat/blacklist.json )

Any ideas?

Average of ratings: -
In reply to Virág Harangozó

Re: Behat requirement not satisfied: blacklisted feature not found with Moodle 3.5.1

by Renaat Debleu -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Which files & folders are stored in the {root_directory_path}/plugins directory?

Because this folder is not a regular Moodle location, things can go wrong.

In reply to Renaat Debleu

Re: Behat requirement not satisfied: blacklisted feature not found with Moodle 3.5.1

by Virág Harangozó -
We store there our developed code, for example a new unique theme.
In reply to Virág Harangozó

Re: Behat requirement not satisfied: blacklisted feature not found with Moodle 3.5.1

by Renaat Debleu -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

While Moodle ignores this folder, Behat does not. Behat is a php test framework and does not know the structure and directory conventions inside Moodle. Every php file inside your www directory is processed by Behat (and Apache).

Store your plugins as a zip or tar file and your errors will be gone.


In reply to Renaat Debleu

Re: Behat requirement not satisfied: blacklisted feature not found with Moodle 3.5.1

by Virág Harangozó -

I need everything from plugins folder to run my suite and moodle uses them too via links.

I didn't have any problem with it when I used moodle v3.5.0 but it would be better if I could use the newest version...

In reply to Virág Harangozó

Re: Behat requirement not satisfied: blacklisted feature not found with Moodle 3.5.1

by Virág Harangozó -

I think something wrong with symbolic link handling in the new Moodle version 3.5.1. I tried to copy directories from my plugins folder into vendor/moodle/moodle instead of creating symbolic links and it worked perfectly.