-
Notifications
You must be signed in to change notification settings - Fork 391
Expand file tree
/
Copy pathpytest.ini
More file actions
34 lines (30 loc) · 1.53 KB
/
pytest.ini
File metadata and controls
34 lines (30 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[pytest]
# Root-level pytest configuration.
#
# Lives here (not in a per-package pyproject.toml) because raptor's CI
# invokes ``pytest core packages`` from the rootdir; pytest reads its
# config from rootdir up. Per-package ``[tool.pytest.ini_options]``
# sections only apply when their package is run standalone.
#
# This file does three things:
# 1. Registers the ``integration`` marker so live-network tests
# (cve_diff's ``TestOSVLive``, ``TestNVDLive``, etc.) don't
# emit ``UnknownMarkWarning`` during collection.
# 2. Deselects integration tests by default. Opt in with
# ``pytest -m integration`` (drops the negation).
# 3. Skips RAPTOR's analysis output trees (``out/``, ``.out/``) and
# the per-target work areas spawned under ``.claude/worktrees/``
# so transient PoC ``test_*.py`` files inside scanned repos aren't
# collected.
#
# Other packages can extend ``markers`` as they grow their own
# conventions. Shared raptor-wide pytest config goes here too.
markers =
integration: tests that hit live network — deselected by default
addopts = -m "not integration" --import-mode=importlib
# Ensure each package's source root is importable without requiring an
# editable install. Mirrors pytest's prepend-mode behaviour for the
# subset of packages that have non-test runtime imports
# (``from cve_diff.X import Y`` etc.) referenced from tests.
pythonpath = packages/cve_diff packages/diagram packages/exploit_feasibility
norecursedirs = out .out .claude .git build dist *.egg .tox .venv venv node_modules