Skip to content

Commit b015b75

Browse files
committed
feat(Makefile): add test-unit-quick target
The --parallel flag speeds up the overall unit test suite, but at the cost of CPU usage and code coverage reports.
1 parent 72acdf7 commit b015b75

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ $(shell kubectl get rc deis-$(COMPONENT) --namespace deis -o yaml > /tmp/deis-$(
1515
DESIRED_REPLICAS=$(shell kubectl get -o template rc/deis-$(COMPONENT) --template={{.status.replicas}} --namespace deis)
1616
endif
1717

18+
# Test processes used in quick unit testing
19+
TEST_PROCS ?= 4
20+
1821
check-docker:
1922
@if [ -z $$(which docker) ]; then \
2023
echo "Missing \`docker\` client which is required for development"; \
@@ -67,6 +70,10 @@ test-unit:
6770
&& coverage run manage.py test --noinput registry api \
6871
&& coverage report -m
6972

73+
test-unit-quick:
74+
cd rootfs \
75+
&& ./manage.py test --noinput --parallel ${TEST_PROCS} --noinput registry api
76+
7077
test-functional:
7178
@echo "Implement functional tests in _tests directory"
7279

0 commit comments

Comments
 (0)