From 0b911d0e5eabd07b2993341daaaa0a47e87f6aa2 Mon Sep 17 00:00:00 2001 From: briefChain Date: Tue, 12 Mar 2019 19:17:26 +0100 Subject: [PATCH] Update unit-testing.rst --- developer_manual/core/unit-testing.rst | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/developer_manual/core/unit-testing.rst b/developer_manual/core/unit-testing.rst index 91bbc7880..2e0d95230 100644 --- a/developer_manual/core/unit-testing.rst +++ b/developer_manual/core/unit-testing.rst @@ -117,7 +117,22 @@ adjust your php.ini and file rights. Running unit tests for the Nextcloud core project ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -The core project provides a script that runs all the core unit tests using different database backends like sqlite, mysql, pgsql, oci (for Oracle). A database oc_testuser which can be accessed with user oc_testuser and password ownloud is expected:: +The core project provides core unit tests using different database backends like sqlite, mysql, pgsql, oci (for Oracle). +Every database to test needs to accesible either + +- natively, setup with + + - Host: localhost + - Database: oc_autotest + - User: oc_autotest + - Password: owncloud + +- or via docker by setting the USEDOCKER environment variable. + +Notes on how to setup databases for this test can be found in https://github.com/nextcloud/server/blob/master/autotest.sh. + + +To run tests for all database engines:: ./autotest.sh