Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs-only] update testing docs to include STORAGE_DRIVER env var #2283

Merged
merged 2 commits into from
Jul 12, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 different storage driver set `STORAGE_DRIVER` to correct value. It can be set to `OCIS` or `OWNCLOUD` and uses `OWNCLOUD` as default value.
phil-davis marked this conversation as resolved.
Show resolved Hide resolved

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