Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 1.36 KB

File metadata and controls

43 lines (33 loc) · 1.36 KB

🧪 Running API tests

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-test

In 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-test

Mark Scenario as Expected Failure

We 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_VERSION environment 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) and master

NEXTCLOUD_BASE_URL=http://<nextcloud_host> \
NEXTCLOUD_VERSION=33 \
make api-test