@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:
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?
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?
utzer [Friendica] likes this.
Friendica Developers reshared this.
Philipp Holzer
in reply to Matthew Exon • • •phpunit --configuration tests/phpunit.xml ./tests/src/Console/ConfigConsoleTest.php
You can have a look here https://github.com/friendica/friendica/blob/develop/.github/workflows/php.yml#L32 . There you find all (named) steps of the autotest , explaining how the DB is initialized, which PHPUnit version is used, etc.
Matthew Exon likes this.
Matthew Exon
in reply to Matthew Exon • •