Open vs4vijay opened 1 month ago
Related to #98
Add unit tests for various components and create a PR gate.
Unit Tests:
tests/test_storage_service.py
StorageService
tests/test_zap_scanner.py
ZapScanner
tests/test_nexpose_scanner.py
NexposeScanner
tests/test_openvas_scanner.py
OpenVASScanner
tests/test_main.py
main.py
tests/test_scanner.py
Scanner
tests/test_init.py
__init__.py
GitHub Actions Workflow:
.github/workflows/test.yml
actions/setup-python
actions/checkout
pip
pytest
For more details, open the Copilot Workspace session.
Failed conditions 17 Security Hotspots
See analysis details on SonarCloud
Related to #98
Add unit tests for various components and create a PR gate.
Unit Tests:
tests/test_storage_service.py
with unit tests forStorageService
class.tests/test_zap_scanner.py
with unit tests forZapScanner
class.tests/test_nexpose_scanner.py
with unit tests forNexposeScanner
class.tests/test_openvas_scanner.py
with unit tests forOpenVASScanner
class.tests/test_main.py
with unit tests formain.py
.tests/test_scanner.py
with unit tests forScanner
class.tests/test_init.py
with unit tests for__init__.py
.GitHub Actions Workflow:
.github/workflows/test.yml
to run unit tests on PRs.actions/setup-python
.actions/checkout
.pip
.pytest
.For more details, open the Copilot Workspace session.