kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
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.
40 lines
1.4 KiB
40 lines
1.4 KiB
12 years ago
|
# Testing OpenProject
|
||
15 years ago
|
|
||
12 years ago
|
## Cucumber
|
||
12 years ago
|
|
||
|
The cucucmber features can be run using rake. You can run the following
|
||
|
rake tasks using the command `bundle exec rake <task>`.
|
||
|
|
||
12 years ago
|
* `cucumber` Run core features
|
||
|
* `cucumber:plugins` Run plugin features
|
||
|
* `cucumber:all` Run core and plugin features
|
||
|
* `cucumber:custom[features]`: Run single features or folders of features
|
||
12 years ago
|
|
||
|
Example: `cucumber:custom[features/issues/issue.feature]`
|
||
|
* When providing moultiple features, the task name and arguments must
|
||
|
be enclosed in quotation marks.
|
||
|
|
||
|
Example: `bundle exec rake "cucumber:custom[features/issues features/projects]"`
|
||
|
|
||
|
`cucumber:plugins` and `cucumber:all` accept an optional parameter which
|
||
|
allows specifying custom options to cucumber. This can be used for
|
||
|
executing scenarios by name, e.g. `"cucumber:all[-n 'Adding an issue link']"`.
|
||
|
Like with spaces in `cucumber:custom` arguments, task name and arguments
|
||
|
have to be enclosed in quotation marks.
|
||
|
|
||
|
Here are two bash functions which allow using shorter commands for running
|
||
|
cucumber features:
|
||
|
|
||
|
# Run OpenProject cucumber features (like arguments to the cucumber command)
|
||
|
# Example: cuke features/issues/issue.feature
|
||
12 years ago
|
cuke() { bundle exec rake "cucumber:custom[$*]"; }
|
||
12 years ago
|
|
||
|
# Run OpenProject cucumber scenarios by name
|
||
12 years ago
|
# Example: cuken Adding an issue link
|
||
|
cuken() { bundle exec rake "cucumber:all[-n '$*']"; }
|
||
12 years ago
|
|
||
|
|
||
12 years ago
|
## Spec
|
||
12 years ago
|
|
||
|
TBD
|