Skip to content

Commit 5a8f228

Browse files
authored
Merge pull request #2151 from lemeurherve/bats-improvements
chore(test): show `bats` version and test timing This PR logs `bats` version, and adds `--timing` option when executing make test locally. (keeping CI output constant across builds)
2 parents 0d17e2f + d470d76 commit 5a8f228

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,14 @@ test-%: prepare-test
105105
@$(call check_image,$*)
106106
# Ensure that the image is built
107107
@make --silent build-$*
108+
# Show bats version
109+
@bats/bin/bats --version
108110
ifeq ($(CI), true)
109111
# Execute the test harness and write result to a TAP file
110112
IMAGE=$* bats/bin/bats $(bats_flags) --formatter junit | tee target/junit-results-$*.xml
111113
else
112114
# Execute the test harness
113-
IMAGE=$* bats/bin/bats $(bats_flags)
115+
IMAGE=$* bats/bin/bats $(bats_flags) --timing
114116
endif
115117

116118
test: prepare-test

0 commit comments

Comments
 (0)