Files
openproject/bin/cucumber
T
Benjamin Bädorf 5f45ee07ab Move development docker-compose file to the main directory (#8798)
* Move development docker-compose file to the main directory

This requires us to move some other files around, like the pullpreview and example docker-compose file for production
setups. This commit also does some housekeeping, like removing some old files and deduping configuration.

* Updated to selenium grid

* Fix in-Docker Selenium tests

The Selenium tests now run inside a Docker Chrome Container. Backwards compatability with non-docker setups is not
guaranteed, though it should not be hard to implement with a couple of small fixes.

* Updated docker development documentation

* Improved test timings, changed the documentation

* Updated docker testing again

* Run npm in the frontend directory

* Really run npm in the frontend directory

* Also run npm in frontend when setting up travis cache

* Change directory for one command only

* Change default test driver name

* CI test change fixes

* Fixed syntax error

* Added dev check

* Trying to fix firefox resizing

* Trying to get tests running

* Stop resizing firefox

* Fixed apple icon spec

* fix host in url helpers for omniauth spec

* Fix omniauth specs

* Fix docs

* Small fixes to docker tests

* Added package.json back in

* Change env variables

Co-authored-by: Markus Kahl <machisuji@gmail.com>
2020-11-12 14:05:03 +00:00

18 lines
572 B
Bash
Executable File

#!/usr/bin/env bash
#
# Runs cucumber while requiring all plugin feature folders to
# make sure all steps are defined. Using this you can then run
# cucumber as usual, for instance to call a specific scenario:
#
# ./bin/cucumber `bundle show openproject-reporting`/features/links.feature:23
FEATURES=`bundle exec rails runner "
support_files = [Rails.root.join('features').to_s] +
Plugins::LoadPathHelper
.cucumber_load_paths
.flat_map { |path| ['-r', Shellwords.escape(path)] }
puts support_files.join(' ')"`
bundle exec cucumber -r $FEATURES $*