summaryrefslogtreecommitdiffstats
path: root/tests/acceptance/run.sh
Commit message (Collapse)AuthorAgeFilesLines
* use php8.0 imagesMaxence Lange2023-01-311-1/+1
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Update images in scripts to run local tests in DockerDaniel Calviño Sánchez2022-03-031-1/+1
| | | | | | | | PHP 7.3 support was dropped for Nextcloud 24. The Docker images are updated to the same images used for integration and acceptance tests in CI. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add cache for local integration test containerLouis Chemineau2021-10-061-1/+7
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Update acceptance tests to Selenium 3Daniel Calviño Sánchez2021-04-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The acceptance tests used the last Selenium 2 Docker container available, which provides a rather old Firefox version (Firefox 47). Nevertheless, despite some rendering issues, most things still worked as expected due to the JavaScript files being built with support for older browsers. However, now that support for Internet Explorer 11 and older browsers will be dropped things could start to fail, so a newer browser (and thus a newer Selenium version) should be used in the acceptance tests. Selenium has been standardized by the W3C, and the protocol to communicate between the Selenium server and the browser has changed due to that. Firefox >= 48 only supports the new W3C protocol, but the Selenium driver for Mink does not support it yet. The old protocol can still be used in recent Chromium/Chrome versions by explicitly forcing it, so for the time being the acceptance tests will need to be run on Chrome instead (although Firefox provides some interesting features like the fake streams that would be needed to test calls in Talk, so they should be moved again to Firefox once possible). Finally, the default shm size of Docker is 64 MiB. This does not seem enough to run newer Chrome releases and causes the browser to randomly crash during the tests ("unknown error: session deleted because of page crash" is shown in the logs). Due to this "disable-dev-shm-usage" needs to be used so Chrome writes shared memory files into "/tmp" instead of "/dev/shm" (the default shm size of Docker could have been increased instead using "docker run --shm-size...", but that seems to be problematic when the container is run in current Drone releases). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Run acceptance tests on PHP 7.3Daniel Calviño Sánchez2019-10-221-1/+1
| | | | | | | | There is no difference (as far as I know) between running the acceptance tests on PHP 7.1 or on PHP 7.3; this is simply a preparatory step to be ready when PHP 7.1 support is dropped in Nextcloud server. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Improve startup speed of acceptance testsJoas Schilling2019-03-181-1/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Link the default Apache directory to the Nextcloud server in all runnersDaniel Calviño Sánchez2018-10-291-4/+0
| | | | | | | | | | | | In order to run the acceptance tests in Apache "/var/www/html" has to be linked to the root directory of the Nextcloud server. Before this was automatically done when launching the acceptance tests through "./run.sh", but an explicit command was needed when run in Drone. Now the linking was moved from "run.sh" to "run-local.sh", so it is automatically done when run through "./run.sh" and in Drone, including when running the tests for an app instead of for the server. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add basic acceptance tests for apps managementJulius Härtl2018-06-091-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Use Docker image for acceptance testsDaniel Calviño Sánchez2018-04-091-1/+5
| | | | | | | | | | | | The Docker image for acceptance tests provides support for both the PHP built-in web server and the Apache web server; the acceptance tests for the server are run on the PHP built-in web server, but the acceptance tests for some apps will have to be run on the Apache web server (for example, Talk, as it uses long polling), so a Docker image to support both cases has to be used in "run.sh". ".drone.yml" was just updated for consistency, although it was not really needed. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Make possible to set the acceptance tests directory to useDaniel Calviño Sánchez2018-04-061-1/+13
| | | | | | | | | | | | When the acceptance tests were run they were always loaded from the "tests/acceptance" directory of the Nextcloud server. Now it is possible to set the directory used to look for the Behat configuration and the Nextcloud installation script, which makes possible to run acceptance tests for the apps too instead of only for the server (although if no directory is explicitly given the tests for the server are the ones run). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* bump acceptance test suite to use php 7.1 imageArthur Schiwon2017-10-311-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add option to acceptance test runners to set a custom timeout multiplierDaniel Calviño Sánchez2017-05-031-1/+17
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix minor code style issues (also known as nitpicking)Daniel Calviño Sánchez2017-04-221-27/+32
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Run acceptance tests on macOSMorris Jobke2017-04-211-4/+30
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Move acceptance tests from build/acceptance to tests/acceptanceDaniel Calviño Sánchez2017-04-211-0/+178
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>