Skip to main content

@Friendica Developers I'm trying to figure out how to run the unit tests and not having much luck. The documentation is a bit light. So far I'm here:
admin@test1:/var/www/friendica $ phpunit ./tests/src/Console/ConfigConsoleTest.php
PHP Fatal error:  Uncaught Error: Class 'Friendica\Test\src\Console\ConsoleTest' not found in /var/www/friendica/tests/src/Console/ConfigConsoleTest.php:32

I guess I have to set an include path somehow? But googling how to do that doesn't turn up anything that looks like it would be a normal part of friendica development. What does everyone else do?
Try phpunit --configuration tests/phpunit.xml ./tests/src/Console/ConfigConsoleTest.php

You can have a look here . There you find all (named) steps of the autotest , explaining how the DB is initialized, which PHPUnit version is used, etc.
Perfect, thank you!