Closed derMart closed 1 year ago
The app's unit tests (not really unit tests, rather integration tests) don't run standalone, but require a working dev install of Nextcloud. You must have your cms_pico repo below some folder (usually apps
, or apps_dev
, or something similar) of a Nextcloud dev install (e.g. /var/www/nextcloud/apps_dev/cms_pico
, so that PHPUnit can include /var/www/nextcloud/lib/base.php
).
Please note that the tests unfortunately aren't 100% safe not to modify your dev install on PHP Fatal Errors (we'd need a overlayfs to do so...), so sometimes temporary stuff survives. occ maintenance:repair
will usually fix any issues with the database and appdata_public
, but data/appdata_*/cms_pico
needs to be cleaned manually. I tried fixing this by temporarily changing Nextcloud's data
path, but never got it working... I recommend keeping a backup around, makes things easier.
Will look into your PRs soon, thank you for your contributions! :heart:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two days if no further activity occurs. Thank you for your contributions! :+1:
Hey, in preparation for creating a pull requests to upstream for pico3 I tried to run the unit tests in a clean installation of the current master branch (https://github.com/nextcloud/cms_pico/commit/cf9edc137285153c6474ea80aef4eb7da1ea1fa6). This is the outcome:
And in fact, bootstrap.php is refering to some file outside of the repo root: https://github.com/nextcloud/cms_pico/blob/cf9edc137285153c6474ea80aef4eb7da1ea1fa6/tests/bootstrap.php#L27