nextcloud/tests/acceptance
Daniel Calviño Sánchez f973926290 Include empty directories in the default state of acceptance tests
Before each scenario of the acceptance tests is run the Nextcloud server
is reset to a default state. To do this the full directory of the
Nextcloud server is commited to a local Git repository and then reset to
that commit when needed.

Unfortunately, Git does not support including empty directories in a
commit. Due to this, when the default state was restored, it could
happen that the file cache listed an empty directory that did not exist
because it was not properly restored (for example,
"data/appdata_*/css/icons"), and that in turn could lead to an error
when the directory was used.

Currently the only way to force Git to include an empty directory is to
add a dummy file to the directory (so it will no longer be empty,
but that should not be a problem in the affected directories, even if
the dummy file is not included in the file cache); although Git FAQ
suggests using a ".gitignore" file a ".keep" file was used instead, as
it conveys better its purpose.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-09-19 12:52:10 +02:00
..
config Extract file list locators and steps to its own class 2018-03-11 12:17:18 +01:00
features Add acceptance tests for creation of subfolders in public shared folders 2018-03-11 13:04:54 +01:00
composer.json Move acceptance tests from build/acceptance to tests/acceptance 2017-04-21 14:44:29 +02:00
installAndConfigureServer.sh Add option to acceptance test runner to set the Nextcloud server domain 2017-07-20 11:32:54 +02:00
run-local.sh Include empty directories in the default state of acceptance tests 2018-09-19 12:52:10 +02:00
run.sh Add option to acceptance test runners to set a custom timeout multiplier 2017-05-03 23:18:40 +02:00