You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# mitreattack-python
2
2
3
+
[](https://pypi.org/project/mitreattack-python/)[](https://www.python.org/downloads/release/python-3110/)[](https://github.com/mitre-attack/mitreattack-python/blob/main/LICENSE)[](https://mitreattack-python.readthedocs.io/)[](https://github.com/mitre-attack/mitreattack-python/actions/workflows/lint-and-test.yml)[](https://github.com/mitre-attack/mitreattack-python/actions/workflows/release-and-publish.yml)
4
+
3
5
This repository contains a library of Python tools and utilities for working with ATT&CK data.
4
6
For more information, see the [full documentation](https://mitreattack-python.readthedocs.io/) on ReadTheDocs.
Copy file name to clipboardExpand all lines: docs/CONTRIBUTING.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,11 +51,21 @@ Run `just` with no arguments to see all available commands. Here are the most co
51
51
52
52
```bash
53
53
just lint # Run pre-commit hooks (ruff format) on all files
54
-
just test# Run tests
54
+
just test# Run the full test suite, matching CI expectations
55
+
just test-fast # Run the fast local subset, excluding integration and slow tests
56
+
just test-xdist # Run tests in parallel
55
57
just test-cov # Run tests with coverage report
58
+
just test-cov-xdist # Run tests with coverage in parallel
56
59
just build # Build the package
57
60
```
58
61
62
+
Use `just test-fast` while iterating locally on changes that do not need full STIX-backed export or other slow integration coverage. Tests or setup steps that normally take longer than 10 seconds should be marked `slow`, so they are skipped by `just test-fast`. Before opening a PR, run `just test`; GitHub Actions also runs the full suite with coverage.
63
+
64
+
Tests that need real ATT&CK STIX data should use the shared STIX fixtures instead of downloading or
65
+
preparing bundles directly. Parallel test runs warm the shared STIX cache before workers start; if a
66
+
new xdist-backed test needs an additional ATT&CK release, update the cache warmup list in
67
+
`tests/conftest.py`.
68
+
59
69
To run STIX-backed tests against specific local bundles, pass the bundle paths to pytest:
0 commit comments