Hello everyone,
A newbie question. I have not worked with phpunit test before and am following the tutorial on Moodleacademy to run phpunit test:
Course Unit Test: https://moodle.academy/mod/book/view.php?id=1162&chapterid=1154
My Moodle version is 4.2 and I have configured a new database and moodledata directory for tests in the config.php file.
If I run the command
$ ./vendor/bin/phpunit
without parameters, the script checks all the tests (20158 in total), and it takes several hours to process.
But if I want to run a single test, and I use the --filter parameter, the test is not excuted.
$vendor/bin/phpunit --filter tool_dataprivacy_metadata_registry_testcase
Moodle 4.2dev (Build: 20221128), 197aff8ec7551a497cbc5177dc1b606a7084640e
Php: 8.0.13, mysqli: 5.7.36, OS: Windows NT 10.0 AMD64
PHPUnit 9.5.25 #StandWithUkraine
No tests executed!
Do I have to configure something special to run an individual test?
Thanks in advance