nextcloud/build
Daniel Calviño Sánchez 4c620f1fcb Add helper context to isolate the test server with Docker containers
Scenarios in acceptance tests must be independent one of each other.
That is, the execution of one scenario can not affect the execution of
another scenario, nor it can depend on the result of the execution of a
different scenario. Each scenario must be isolated and self-contained.
As the acceptance tests are run against a Nextcloud server the server
must be in a known and predefined initial state each time a scenario
begins.

The NextcloudTestServerContext is introduced to automatically set up the
Nextcloud test server for each scenario.

This can be achieved using Docker containers. Before an scenario begins
a new Docker container with a Nextcloud server is run; the scenario is
then run against the server provided by the container. When the scenario
ends the container is destroyed. As long as the Nextcloud server uses
local data storage each scenario is thus isolated from the rest.

The NextcloudTestServerContext also notifies its sibling RawMinkContexts
about the base URL of the Nextcloud test server being used in each
scenario.

Although it uses the Behat context system, NextcloudTestServerContext is
not really part of the acceptance tests, but a provider of core features
needed by them; it can be seen as part of a Nextcloud acceptance test
library. Therefore, those classes are stored in the "core" directory
instead of the "bootstrap" directory. Besides its own (quite limited)
autoload configuration, Behat also uses the Composer autoloader, so the
"core" directory has to be added there for its classes to be found by
Behat.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2017-04-19 08:26:03 +02:00
..
.ci-conf Adding magic file to enable oci on pull request testing on ci.owncloud.org 2015-03-20 15:00:51 +01:00
acceptance Add helper context to isolate the test server with Docker containers 2017-04-19 08:26:03 +02:00
integration Add support for ratelimiting via annotations 2017-04-13 12:00:16 +02:00
.htaccess Only request "IndexIgnore" if mod_autoindex is loaded 2017-02-20 13:09:15 +01:00
OCPSinceChecker.php $this->blackListedClassNames is unknown 2016-09-07 22:09:08 +02:00
autoloaderchecker.sh Allow to use a global composer instance 2017-01-05 11:01:59 +01:00
build.xml cleaning up the build directory 2014-12-10 10:07:22 +01:00
gen-coverage-badge.php Add script to generate coverage badges 2016-02-16 10:07:00 +01:00
htaccess-checker.php Add .htaccess checker as CI step 2016-11-02 20:11:30 +01:00
jsdocs9.tar.bz2 Update integration tests for system tags with groups 2016-05-20 17:56:02 +02:00
license.php Make sure to also detect their new copy right line 2016-08-18 10:59:59 +02:00
mergejs.php mergejs should print a newline between imports 2017-03-31 17:06:38 +02:00
mergejschecker.sh Add CI step to verify merged vendor js 2017-03-23 13:40:30 +01:00
package.json also install sinon 2017-03-23 23:42:54 -06:00
signed-off-checker.php Add codecov 2016-09-28 21:08:17 +02:00