Skip to content

Commit

Permalink
Add pytest-rerunfailures, use it for integration tests (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
vblagoje committed Jun 28, 2024
1 parent fb5f761 commit 3ab2ca5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ dependencies = [
"mypy",
# Test
"pytest",
"pytest-rerunfailures",
"pytest-cov",
# Linting
"pylint",
Expand All @@ -58,7 +59,7 @@ extra-dependencies = [

[tool.hatch.envs.test.scripts]
unit = 'pytest --cov-report xml:coverage.xml --cov="haystack_experimental" -m "not integration" {args:test}'
integration = 'pytest --maxfail=5 -m "integration" {args:test}'
integration = 'pytest --reruns 3 --reruns-delay 60 -x --maxfail=5 -m "integration" {args:test}'
typing = "mypy --install-types --non-interactive {args:haystack_experimental}"
lint = [
"ruff check {args:haystack_experimental}",
Expand Down

0 comments on commit 3ab2ca5

Please sign in to comment.