OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/bin/cucumber

18 lines
538 B

#!/bin/sh
#
# 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=`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(' ')"`
cucumber -r $FEATURES $*