From bfb0a9877857e97f75cf8075291ccdb97722a5e3 Mon Sep 17 00:00:00 2001 From: Dipak Acharya Date: Mon, 12 Jul 2021 12:27:50 +0545 Subject: [PATCH 1/2] [docs-only] update testing docs to include STORAGE_DRIVER env var --- docs/ocis/development/testing.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/ocis/development/testing.md b/docs/ocis/development/testing.md index 205befe1c75..b8a1db73acc 100644 --- a/docs/ocis/development/testing.md +++ b/docs/ocis/development/testing.md @@ -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' ``` @@ -127,6 +128,8 @@ This will run all tests that are relevant to oCIS. To run a single test add `BEHAT_FEATURE=` +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. + ### 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. @@ -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' ``` From ccf456aa9aa46f9e25a838d23dcbc2b449093cc4 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Mon, 12 Jul 2021 12:33:35 +0545 Subject: [PATCH 2/2] Minor English grammar --- docs/ocis/development/testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ocis/development/testing.md b/docs/ocis/development/testing.md index b8a1db73acc..908155e2724 100644 --- a/docs/ocis/development/testing.md +++ b/docs/ocis/development/testing.md @@ -128,7 +128,7 @@ This will run all tests that are relevant to oCIS. To run a single test add `BEHAT_FEATURE=` -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. +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