Skip to content

Commit

Permalink
Merge pull request #1629 from consideRatio/pr/add-notes-about-pytest-…
Browse files Browse the repository at this point in the history
…xdist

Add inline comments about pytest-xdist
  • Loading branch information
mathbunnyru authored Feb 15, 2022
2 parents 72e2af0 + 447d994 commit b6fdd5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ run-sudo-shell/%: ## run a bash in interactive mode as root in a stack

test/%: ## run tests against a stack (only common tests or common tests + specific tests)
@echo "::group::test/$(OWNER)/$(notdir $@)"
@if [ ! -d "$(notdir $@)/test" ]; then TEST_IMAGE="$(OWNER)/$(notdir $@)" pytest -n auto -m "not info" test; \
else TEST_IMAGE="$(OWNER)/$(notdir $@)" pytest -n auto -m "not info" test $(notdir $@)/test; fi
@if [ ! -d "$(notdir $@)/test" ]; then TEST_IMAGE="$(OWNER)/$(notdir $@)" pytest --numprocesses=auto -m "not info" test; \
else TEST_IMAGE="$(OWNER)/$(notdir $@)" pytest --numprocesses=auto -m "not info" test $(notdir $@)/test; fi
@echo "::endgroup::"
test-all: $(foreach I, $(ALL_IMAGES), test/$(I)) ## test all stacks
2 changes: 2 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ packaging
plumbum
pre-commit
pytest
# pytest-xdist is a plugin that provides the --numprocesses flag, allowing us to
# run pytest tests in parallel.
pytest-xdist
requests
tabulate

0 comments on commit b6fdd5d

Please sign in to comment.