nextcloud/tests/acceptance
Daniel Calviño Sánchez aa96dfd173 Add helper to run acceptance tests on an Apache server
The default and only helper to run acceptance tests run them on the PHP
built-in web server. This commit introduces a new helper that can be
used to run them on an Apache web server instead.

This helper is meant to be used by the acceptance tests of apps that
require a multi-threaded web server to run (like Talk, due to its use of
long polling). To use the helper it is only needed to set it in the
Behat configuration for the acceptance tests of the app, as explained in
the "NextcloudTestServerContext" documentation.

It is assumed that the acceptance tests are run using the default setup,
and therefore inside a Docker container based on the image for
acceptance tests from Nextcloud. Due to that the helper is expected to
have root permissions, and thus it starts and stops the Apache web
server directly using "service start/stop apache2". In the same way it
also restores the owner and group for "apps", "config" and "data" to
"www-data", as it is the user that Apache sub-processes are run as.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-04-09 21:50:30 +02:00
..
config Add context classes to Composer autoload 2018-04-06 04:13:42 +02:00
features Add helper to run acceptance tests on an Apache server 2018-04-09 21:50:30 +02:00
composer.json Add context classes to Composer autoload 2018-04-06 04:13:42 +02:00
installAndConfigureServer.sh Add option to acceptance test runner to set the Nextcloud server domain 2017-07-20 07:54:39 +02:00
run-local.sh Add support for setting the domain also when a specific helper is used 2018-04-09 21:50:30 +02:00
run.sh Use Docker image for acceptance tests 2018-04-09 21:50:30 +02:00