Merge pull request #1296 from chiefbrain/patch-1

add expected database, user and password for unit tests
This commit is contained in:
Morris Jobke 2019-03-13 22:51:09 +01:00 committed by GitHub
commit 0d67d5151e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)::
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