Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Display error summary if any test errors

Cyril Rohr130202a68cc8
diff --git a/docker/ci/entrypoint.sh b/docker/ci/entrypoint.sh
index 76182df34c1..98d6e775956 100755
--- a/docker/ci/entrypoint.sh
+++ b/docker/ci/entrypoint.sh
@@ -54,6 +54,10 @@ if [ "$1" == "run-units" ]; then
execute "cd frontend && npm install && npm run test"
execute "time bundle exec rspec -I spec_legacy spec_legacy"
execute "time bundle exec rake parallel:units"
+ if [ ! $? -eq 0 ];
+ execute "cat tmp/spec_examples.txt | grep -Ev 'passed|unknown|pending'"
+ exit 1
+ fi
fi
if [ "$1" == "run-features" ]; then
@@ -62,6 +66,10 @@ if [ "$1" == "run-features" ]; then
execute "bundle exec rake assets:precompile assets:clean"
execute "cp -rp config/frontend_assets.manifest.json public/assets/frontend_assets.manifest.json"
execute "time bundle exec rake parallel:features"
+ if [ ! $? -eq 0 ];
+ execute "cat tmp/spec_examples.txt | grep -Ev 'passed|unknown|pending'"
+ exit 1
+ fi
fi
if [ ! -z "$1" ] ; then