test: add test targets for running bats via docker to Makefile
This commit is contained in:
parent
1773a5759d
commit
5cb28fbc95
1 changed files with 12 additions and 1 deletions
13
Makefile
13
Makefile
|
@ -1,6 +1,17 @@
|
|||
TEST_IMAGE?=vault-helm-test
|
||||
|
||||
test-docker:
|
||||
test-image:
|
||||
@docker build --rm -t '$(TEST_IMAGE)' -f $(CURDIR)/test/docker/Test.dockerfile $(CURDIR)
|
||||
|
||||
test-unit:
|
||||
@docker run -it -v ${PWD}:/helm-test vault-helm-test bats /helm-test/test/unit
|
||||
|
||||
test-acceptance:
|
||||
@docker run -it -v ${PWD}:/helm-test vault-helm-test bats /helm-test/test/acceptance
|
||||
|
||||
test-bats: test-unit test-acceptance
|
||||
|
||||
test: test-image test-bats
|
||||
|
||||
|
||||
.PHONY: test-docker
|
||||
|
|
Loading…
Reference in a new issue