Skip to content

Commit

Permalink
Add random test order
Browse files Browse the repository at this point in the history
  • Loading branch information
endast committed Jan 11, 2024
1 parent e905801 commit e03800f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ formatting: codestyle
#* Linting
.PHONY: test
test:
PYTHONPATH=$(PYTHONPATH) poetry run pytest -c pyproject.toml --cov-report=html --cov=fake_vcf tests/
PYTHONPATH=$(PYTHONPATH) poetry run pytest -c pyproject.toml --random-order --cov-report=html --cov=fake_vcf tests/
poetry run coverage-badge -o assets/images/coverage.svg -f

#* Linting
.PHONY: test-xdist
test-xdist:
PYTHONPATH=$(PYTHONPATH) poetry run pytest -n auto -c pyproject.toml --cov-report=html --cov=fake_vcf tests/
PYTHONPATH=$(PYTHONPATH) poetry run pytest -n auto --random-order -c pyproject.toml --cov-report=html --cov=fake_vcf tests/
poetry run coverage-badge -o assets/images/coverage.svg -f


Expand Down
30 changes: 22 additions & 8 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ pytest-cov = "^4.1.0"
black = "^23.12.1"
safety = "^2.3.5"
pytest-xdist = "^3.4.0"
pytest-random-order = "^1.1.0"

[tool.black]
# https://github.com/psf/black
Expand Down

0 comments on commit e03800f

Please sign in to comment.