Skip to content

Commit

Permalink
Improve Makefile debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
cognifloyd committed Dec 18, 2024
1 parent 956e1e8 commit df0bd50
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,7 @@ unit-tests: requirements .unit-tests
echo "Done running tests in" $$component; \
echo "==========================================================="; \
done; \
echo pytest runs failed=$$failed; \
if [ $$failed -gt 0 ]; then exit 1; fi

.PHONY: .run-unit-tests-coverage
Expand Down Expand Up @@ -851,6 +852,7 @@ endif
echo "Done running tests in" $$component; \
echo "==========================================================="; \
done; \
echo pytest runs failed=$$failed; \
if [ $$failed -gt 0 ]; then exit 1; fi

.PHONY: .combine-unit-tests-coverage
Expand Down Expand Up @@ -908,7 +910,7 @@ itests: requirements .itests
echo "Done running integration tests in" $$component; \
echo "==========================================================="; \
done; \
echo failed=$$failed; \
echo pytest runs failed=$$failed; \
if [ $$failed -gt 0 ]; then exit 1; fi

.PHONY: .run-integration-tests-coverage
Expand All @@ -934,7 +936,7 @@ endif
echo "Done integration running tests in" $$component; \
echo "==========================================================="; \
done; \
echo failed=$$failed; \
echo pytest runs failed=$$failed; \
if [ $$failed -gt 0 ]; then exit 1; fi
# NOTE: If you also want to run orquesta tests which seem to have a bunch of race conditions, use
# ci-integration-full target
Expand Down Expand Up @@ -1086,7 +1088,7 @@ runners-itests: requirements .runners-itests
echo "==========================================================="; \
. $(VIRTUALENV_DIR)/bin/activate; pytest --capture=no --verbose $(PYTEST_OPTS) $$component/tests/integration || ((failed+=1)); \
done; \
echo failed=$$failed; \
echo pytest runs failed=$$failed; \
if [ $$failed -gt 0 ]; then exit 1; fi

.PHONY: .runners-itests-coverage-html
Expand All @@ -1103,7 +1105,7 @@ runners-itests: requirements .runners-itests
. $(VIRTUALENV_DIR)/bin/activate; pytest --capture=no --verbose $(PYTEST_OPTS) \
--cov=$$component --cov-report=html $$component/tests/integration || ((failed+=1)); \
done; \
echo failed=$$failed; \
echo pytest runs failed=$$failed; \
if [ $$failed -gt 0 ]; then exit 1; fi

.PHONY: cli
Expand Down

0 comments on commit df0bd50

Please sign in to comment.