Skip to content

Commit

Permalink
Merge pull request #2283 from owncloud/update-testing-doc
Browse files Browse the repository at this point in the history
[docs-only] update testing docs to include STORAGE_DRIVER env var
  • Loading branch information
phil-davis authored Jul 12, 2021
2 parents 93a317b + ccf456a commit c12d438
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/ocis/development/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ Then run the api acceptance tests with the following command from the root of th
make test-acceptance-api \
TEST_SERVER_URL=https://localhost:9200 \
TEST_OCIS=true \
STORAGE_DRIVER=OCIS \
SKELETON_DIR=apps/testing/data/apiSkeleton \
BEHAT_FILTER_TAGS='~@notToImplementOnOCIS&&~@toImplementOnOCIS'
```
Expand All @@ -127,6 +128,8 @@ This will run all tests that are relevant to oCIS.

To run a single test add `BEHAT_FEATURE=<feature file>`

To run tests with a different storage driver set `STORAGE_DRIVER` to the correct value. It can be set to `OCIS` or `OWNCLOUD` and uses `OWNCLOUD` as the default value.

### use existing tests for BDD

As a lot of scenarios are written for oC10, we can use those tests for Behaviour driven development in ocis.
Expand Down Expand Up @@ -157,6 +160,7 @@ If you want to work on a specific issue
make test-acceptance-api \
TEST_SERVER_URL=https://localhost:9200 \
TEST_OCIS=true \
STORAGE_DRIVER=OCIS \
BEHAT_FEATURE='tests/acceptance/features/apiComments/comments.feature:123'
```

Expand Down

0 comments on commit c12d438

Please sign in to comment.