Browse Source

Move acceptance tests from build/acceptance to tests/acceptance

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
tags/v12.0.0beta1
Daniel Calviño Sánchez 7 years ago
parent
commit
2f80025ec2

+ 2
- 2
.drone.yml View File

@@ -481,14 +481,14 @@ pipeline:
acceptance-access-levels:
image: nextcloudci/php7.0:php7.0-7
commands:
- build/acceptance/run-local.sh allow-git-repository-modifications features/access-levels.feature
- tests/acceptance/run-local.sh allow-git-repository-modifications features/access-levels.feature
when:
matrix:
TESTS-ACCEPTANCE: access-levels
acceptance-login:
image: nextcloudci/php7.0:php7.0-7
commands:
- build/acceptance/run-local.sh allow-git-repository-modifications features/login.feature
- tests/acceptance/run-local.sh allow-git-repository-modifications features/login.feature
when:
matrix:
TESTS-ACCEPTANCE: login

build/acceptance/composer.json → tests/acceptance/composer.json View File


build/acceptance/config/behat.yml → tests/acceptance/config/behat.yml View File


build/acceptance/features/access-levels.feature → tests/acceptance/features/access-levels.feature View File


build/acceptance/features/bootstrap/FeatureContext.php → tests/acceptance/features/bootstrap/FeatureContext.php View File


build/acceptance/features/bootstrap/FilesAppContext.php → tests/acceptance/features/bootstrap/FilesAppContext.php View File


build/acceptance/features/bootstrap/LoginPageContext.php → tests/acceptance/features/bootstrap/LoginPageContext.php View File


build/acceptance/features/bootstrap/NotificationContext.php → tests/acceptance/features/bootstrap/NotificationContext.php View File


build/acceptance/features/bootstrap/SettingsMenuContext.php → tests/acceptance/features/bootstrap/SettingsMenuContext.php View File


build/acceptance/features/bootstrap/UsersSettingsContext.php → tests/acceptance/features/bootstrap/UsersSettingsContext.php View File


build/acceptance/features/core/Actor.php → tests/acceptance/features/core/Actor.php View File


build/acceptance/features/core/ActorAware.php → tests/acceptance/features/core/ActorAware.php View File


build/acceptance/features/core/ActorAwareInterface.php → tests/acceptance/features/core/ActorAwareInterface.php View File


build/acceptance/features/core/ActorContext.php → tests/acceptance/features/core/ActorContext.php View File


build/acceptance/features/core/Locator.php → tests/acceptance/features/core/Locator.php View File


build/acceptance/features/core/NextcloudTestServerContext.php → tests/acceptance/features/core/NextcloudTestServerContext.php View File


build/acceptance/features/core/NextcloudTestServerHelper.php → tests/acceptance/features/core/NextcloudTestServerHelper.php View File


build/acceptance/features/core/NextcloudTestServerLocalHelper.php → tests/acceptance/features/core/NextcloudTestServerLocalHelper.php View File


build/acceptance/features/core/NoSuchElementException.php → tests/acceptance/features/core/NoSuchElementException.php View File


build/acceptance/features/core/Utils.php → tests/acceptance/features/core/Utils.php View File


build/acceptance/features/login.feature → tests/acceptance/features/login.feature View File


build/acceptance/installAndConfigureServer.sh → tests/acceptance/installAndConfigureServer.sh View File


build/acceptance/run-local.sh → tests/acceptance/run-local.sh View File

@@ -54,13 +54,13 @@ composer install
cd ../../

echo "Installing and configuring Nextcloud server"
build/acceptance/installAndConfigureServer.sh
tests/acceptance/installAndConfigureServer.sh

echo "Saving the default state so acceptance tests can reset to it"
find . -name ".gitignore" -exec rm --force {} \;
git add --all && echo 'Default state' | git -c user.name='John Doe' -c user.email='john@doe.org' commit --quiet --file=-

cd build/acceptance
cd tests/acceptance

# Ensure that the Selenium server is ready before running the tests.
echo "Waiting for Selenium"

build/acceptance/run.sh → tests/acceptance/run.sh View File

@@ -118,7 +118,8 @@ function prepareDocker() {
# "docker cp" does not take them into account (the extracted files are set
# to root).
echo "Copying local Git working directory of Nextcloud to the container"
tar --create --file="$NEXTCLOUD_LOCAL_TAR" --exclude=".git" --exclude="./config/config.php" --exclude="./data" --exclude="./data-autotest" --exclude="./tests" --directory=../../ .
tar --create --file="$NEXTCLOUD_LOCAL_TAR" --exclude=".git" --exclude="./build" --exclude="./config/config.php" --exclude="./data" --exclude="./data-autotest" --exclude="./tests" --directory=../../ .
tar --append --file="$NEXTCLOUD_LOCAL_TAR" --directory=../../ tests/acceptance/

docker exec $NEXTCLOUD_LOCAL_CONTAINER mkdir /nextcloud
docker cp - $NEXTCLOUD_LOCAL_CONTAINER:/nextcloud/ < "$NEXTCLOUD_LOCAL_TAR"
@@ -174,4 +175,4 @@ prepareSelenium
prepareDocker

echo "Running tests"
docker exec $NEXTCLOUD_LOCAL_CONTAINER bash -c "cd nextcloud && build/acceptance/run-local.sh allow-git-repository-modifications $SCENARIO_TO_RUN"
docker exec $NEXTCLOUD_LOCAL_CONTAINER bash -c "cd nextcloud && tests/acceptance/run-local.sh allow-git-repository-modifications $SCENARIO_TO_RUN"

Loading…
Cancel
Save