Skip to content

Commit

Permalink
add integration test marker
Browse files Browse the repository at this point in the history
By default `hatch test` wont run integration tests, but they can be
run with `hatch test -m integration`.

Signed-off-by: Spencer Schrock <[email protected]>
  • Loading branch information
spencerschrock committed Nov 18, 2024
1 parent e70a1fd commit ff4e73d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ packages = ["src/model_signing"]
installer = "pip"
parallel = true
randomize = true
extra-args = ["-m", "not integration"]

[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.10", "3.11", "3.12", "3.13"]
Expand Down Expand Up @@ -119,6 +120,9 @@ skip_empty = true

# Add support for testing via the old `pytest .` way, too.
[tool.pytest.ini_options]
markers = [
"integration: mark a test as an integration test.",
]
pythonpath = "src"

[tool.ruff]
Expand Down

0 comments on commit ff4e73d

Please sign in to comment.