Merge pull request #4265 from dokku/bats-retry

Retry failing and skipped tests once
This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2020-12-20 04:15:09 -05:00
commit 89d6f0eb6e
2 files changed
+9 -1

No files matched your search

+3 -1
View File
@@ -84,7 +84,9 @@ jobs:
- run: - run:
name: run bats tests name: run bats tests
command: | command: |
sudo -E make -e test-ci if ! sudo -E make -e test-ci; then
sudo -E make tests-ci-retry-failed
fi
no_output_timeout: 60m no_output_timeout: 60m
shell: /bin/bash shell: /bin/bash
- run: - run:
+6
View File
@@ -284,4 +284,10 @@ test-ci:
@cd tests/unit && echo "executing tests: $(shell cd tests/unit ; circleci tests glob *.bats | circleci tests split --split-by=timings --timings-type=classname | xargs)" @cd tests/unit && echo "executing tests: $(shell cd tests/unit ; circleci tests glob *.bats | circleci tests split --split-by=timings --timings-type=classname | xargs)"
cd tests/unit && bats --formatter bats-format-junit -e -T -o ../../test-results/bats $(shell cd tests/unit ; circleci tests glob *.bats | circleci tests split --split-by=timings --timings-type=classname | xargs) cd tests/unit && bats --formatter bats-format-junit -e -T -o ../../test-results/bats $(shell cd tests/unit ; circleci tests glob *.bats | circleci tests split --split-by=timings --timings-type=classname | xargs)
tests-ci-retry-failed:
wget -qO /tmp/bats-retry.tgz https://github.com/josegonzalez/go-bats-retry/releases/download/v0.1.0/bats-retry_0.1.0_linux_x86_64.tgz
tar xzf /tmp/bats-retry.tgz -C /usr/local/bin
bats-retry test-results/bats bats-retry-script
./bats-retry-script
test-ci-docker: setup-docker-deploy-tests deploy-test-checks-root deploy-test-config deploy-test-multi deploy-test-go-fail-predeploy deploy-test-go-fail-postdeploy test-ci-docker: setup-docker-deploy-tests deploy-test-checks-root deploy-test-config deploy-test-multi deploy-test-go-fail-predeploy deploy-test-go-fail-postdeploy