Skip to content

Commit b3407ca

Browse files
committed
test: add fast xdist test target
1 parent f035eac commit b3407ca

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

justfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ test:
3939
test-fast:
4040
uv run pytest -m "not integration and not slow"
4141

42+
# Run the fast local test subset in parallel
43+
test-fast-xdist workers="auto":
44+
uv run --extra dev pytest -n {{ workers }} -m "not integration and not slow"
45+
4246
# Run tests in parallel
4347
test-xdist workers="auto":
4448
uv run --extra dev pytest -n {{ workers }}

tests/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,9 @@ def attack_stix_dir(request):
298298
-------
299299
dict
300300
Dictionary mapping version to download directory path.
301-
Directory structure: attack-releases/stix-{version}/v{attack_version}/
302-
For single/default: {"latest": "attack-releases/stix-2.0"} or {"14.0": "attack-releases/stix-2.0"}
303-
For multiple: {"14.0": "attack-releases/stix-2.0", "14.1": "attack-releases/stix-2.0"}
301+
Directory structure: .pytest_cache/attack-stix/stix-{stix_version}/v{attack_version}/
302+
For single/default: {"latest": ".pytest_cache/attack-stix/stix-2.0/v{LATEST_VERSION}"}
303+
For multiple: {"14.0": ".pytest_cache/attack-stix/stix-2.0/v14.0"}
304304
305305
Yields
306306
------

0 commit comments

Comments
 (0)