From 8437f287d162cff330f6abe5cc193924ec59e781 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 18 May 2024 04:11:59 -0400 Subject: [PATCH 1/3] tests: use bats-core version of bats --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 92246bf..6c49fff 100644 --- a/Makefile +++ b/Makefile @@ -171,7 +171,7 @@ ifneq ($(shell bats --version >/dev/null 2>&1 ; echo $$?),0) brew install bats-core endif else - git clone https://github.com/josegonzalez/bats-core.git /tmp/bats + git clone https://github.com/bats-core/bats-core.git /tmp/bats cd /tmp/bats && sudo ./install.sh /usr/local rm -rf /tmp/bats endif From ec72f70357d5ba6099ad31a1d5bc7a1e0906b824 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 18 May 2024 04:16:02 -0400 Subject: [PATCH 2/3] fix: use up to date junit formatter --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6c49fff..f5c1dd4 100644 --- a/Makefile +++ b/Makefile @@ -145,7 +145,7 @@ lint: shellcheck bats unit-tests: /usr/local/bin/dokku-update @echo running unit tests... @mkdir -p test-results/bats - @$(QUIET) TERM=linux bats --formatter bats-format-junit -e -T -o test-results/bats tests/unit + @$(QUIET) TERM=linux bats --formatter junit -e -T -o test-results/bats tests/unit pre-build: git config --global --add safe.directory $(shell pwd) From 8cced29646a9bf2efc3777e06edc66ab2a1f5c7f Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 18 May 2024 04:21:06 -0400 Subject: [PATCH 3/3] fix: update bats flags --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f5c1dd4..7e7c995 100644 --- a/Makefile +++ b/Makefile @@ -145,7 +145,7 @@ lint: shellcheck bats unit-tests: /usr/local/bin/dokku-update @echo running unit tests... @mkdir -p test-results/bats - @$(QUIET) TERM=linux bats --formatter junit -e -T -o test-results/bats tests/unit + @$(QUIET) TERM=linux bats --report-formatter junit --timing -o test-results/bats tests/unit pre-build: git config --global --add safe.directory $(shell pwd)