Welcome to mirror list, hosted at ThFree Co, Russian Federation.

TESTING.md - github.com/nextcloud/registration.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b73186a67f927bf29848cd42119a865a1aff4e8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
You need a fully working nextcloud/owncloud instance. Check-out this app into the `apps` folder, and follow the instructions below. The tests will modify your database but should automatically revert the changes in the cleanup stage. (As provided by https://github.com/ChristophWurst/nextcloud_testing)

# Enable the app

```
cd <nextcloud root>
sudo -u php occ app:enable registration
```

# Make sure you have latest dev dependencies

If you don't have `composer` installed yet, follow https://getcomposer.org/download/

Then install dev dependencies:
```
composer install
```

# Run tests manually

```
sudo -u www-data vendor/bin/phpunit -c tests/phpunit.unit.xml
sudo -u www-data vendor/bin/phpunit -c tests/phpunit.integration.xml
```