mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Correct spec name typos, filter out non spec files from CI spec runs
Update the spec running globs to include specs in the root spec folder.
This commit is contained in:
@@ -156,22 +156,24 @@ setup_tests() {
|
||||
}
|
||||
|
||||
run_units() {
|
||||
shopt -s extglob
|
||||
shopt -s extglob globstar nullglob
|
||||
reset_dbs
|
||||
execute "time bundle exec turbo_tests --verbose -n $JOBS --runtime-log spec/support/runtime-logs/turbo_runtime_units.log {,modules/*/}spec/!(features)"
|
||||
execute "time bundle exec turbo_tests --verbose -n $JOBS --runtime-log spec/support/runtime-logs/turbo_runtime_units.log {,modules/*/}spec/{!(features)/**/,}*_spec.rb"
|
||||
cleanup
|
||||
}
|
||||
|
||||
run_features() {
|
||||
shopt -s globstar nullglob
|
||||
run_background start_hocuspocus
|
||||
reset_dbs
|
||||
execute "time bundle exec turbo_tests --verbose -n $JOBS --runtime-log spec/support/runtime-logs/turbo_runtime_features.log {,modules/*/}spec/features"
|
||||
execute "time bundle exec turbo_tests --verbose -n $JOBS --runtime-log spec/support/runtime-logs/turbo_runtime_features.log {,modules/*/}spec/features/**/*_spec.rb"
|
||||
cleanup
|
||||
}
|
||||
|
||||
run_all() {
|
||||
shopt -s globstar nullglob
|
||||
reset_dbs
|
||||
execute "time bundle exec turbo_tests --verbose -n $JOBS --runtime-log spec/support/runtime-logs/turbo_runtime_all.log {,modules/*/}spec"
|
||||
execute "time bundle exec turbo_tests --verbose -n $JOBS --runtime-log spec/support/runtime-logs/turbo_runtime_all.log {,modules/*/}spec/**/*_spec.rb"
|
||||
cleanup
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user