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:
Dombi Attila
2026-03-18 17:17:37 +02:00
parent a8e966a95b
commit a57de7a6da
4 changed files with 6 additions and 4 deletions
+6 -4
View File
@@ -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
}