NOTE: Before running the API tests, the nextcloud instance needs to be ready, and also integration app needs to be enabled
To run the whole of the acceptance tests locally run the command below:
NEXTCLOUD_BASE_URL=http://<nextcloud_host> \
BEHAT_FILTER_TAGS="~@skip" \
make api-testIn order to run only a specific scenario:
NEXTCLOUD_BASE_URL=http://<nextcloud_host> \
BEHAT_FEATURE_PATH=tests/acceptance/features/api/directUpload.feature:15 \
make api-testWe can mark a scenario as expected to fail for all Nextcloud versions or for specific versions using tags.
@expect-fail: Marks a scenario as expected failure for all Nextcloud versions@expect-fail-on-nc<major-version>: Marks a scenario as expected failure for a specific Nextcloud version. (E.g.:@expect-fail-on-nc33)
NOTE: We MUST provide
NEXTCLOUD_VERSIONenvironment variable while running the tests that are tagged@expect-fail-on-nc<major-version>.Possible values for
NEXTCLOUD_VERSION:stable33(any major version number),33(any major version number) andmasterNEXTCLOUD_BASE_URL=http://<nextcloud_host> \ NEXTCLOUD_VERSION=33 \ make api-test