This PR adds pytest as a dependency to SWAT. It also adds test_emulation.py with several tests regarding emulation module metadata that is required. This emulation metadata is used to dynamically determine, scopes, services, ATT&CK mappings and more which affect other features.
Additional Information
The pyproject.toml incorrectly pointed to README.md, this has been fixed.
Added github workflow for pytest checks
Testing
pytest addition: run pytest, pytest tests/ or poetry run pytest tests/
emulations missing metadata: find an emulations and remove techniques, name, scopes, services or execute method and run tests
Overview
This PR adds
pytest
as a dependency to SWAT. It also addstest_emulation.py
with several tests regarding emulation module metadata that is required. This emulation metadata is used to dynamically determine, scopes, services, ATT&CK mappings and more which affect other features.Additional Information
pyproject.toml
incorrectly pointed toREADME.md
, this has been fixed.Testing
pytest
,pytest tests/
orpoetry run pytest tests/
techniques
,name
,scopes
,services
orexecute
method and run tests