Skip to content

Commit b6fdd5d

Browse files
authored
Merge pull request #1629 from consideRatio/pr/add-notes-about-pytest-xdist
Add inline comments about pytest-xdist
2 parents 72e2af0 + 447d994 commit b6fdd5d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ run-sudo-shell/%: ## run a bash in interactive mode as root in a stack
207207

208208
test/%: ## run tests against a stack (only common tests or common tests + specific tests)
209209
@echo "::group::test/$(OWNER)/$(notdir $@)"
210-
@if [ ! -d "$(notdir $@)/test" ]; then TEST_IMAGE="$(OWNER)/$(notdir $@)" pytest -n auto -m "not info" test; \
211-
else TEST_IMAGE="$(OWNER)/$(notdir $@)" pytest -n auto -m "not info" test $(notdir $@)/test; fi
210+
@if [ ! -d "$(notdir $@)/test" ]; then TEST_IMAGE="$(OWNER)/$(notdir $@)" pytest --numprocesses=auto -m "not info" test; \
211+
else TEST_IMAGE="$(OWNER)/$(notdir $@)" pytest --numprocesses=auto -m "not info" test $(notdir $@)/test; fi
212212
@echo "::endgroup::"
213213
test-all: $(foreach I, $(ALL_IMAGES), test/$(I)) ## test all stacks

requirements-dev.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ packaging
33
plumbum
44
pre-commit
55
pytest
6+
# pytest-xdist is a plugin that provides the --numprocesses flag, allowing us to
7+
# run pytest tests in parallel.
68
pytest-xdist
79
requests
810
tabulate

0 commit comments

Comments
 (0)