Skip to content

Conversation

vs4vijay
Copy link
Owner

@vs4vijay vs4vijay commented Jul 30, 2024

Related to #98

Add unit tests for various components and create a PR gate.

  • Unit Tests:

    • Add tests/test_storage_service.py with unit tests for StorageService class.
    • Add tests/test_zap_scanner.py with unit tests for ZapScanner class.
    • Add tests/test_nexpose_scanner.py with unit tests for NexposeScanner class.
    • Add tests/test_openvas_scanner.py with unit tests for OpenVASScanner class.
    • Add tests/test_main.py with unit tests for main.py.
    • Add tests/test_scanner.py with unit tests for Scanner class.
    • Add tests/test_init.py with unit tests for __init__.py.
  • GitHub Actions Workflow:

    • Add .github/workflows/test.yml to run unit tests on PRs.
    • Set up Python environment using actions/setup-python.
    • Check out the repository using actions/checkout.
    • Install dependencies using pip.
    • Run unit tests using pytest.

For more details, open the Copilot Workspace session.

Related to #98

Add unit tests for various components and create a PR gate.

* **Unit Tests:**
  - Add `tests/test_storage_service.py` with unit tests for `StorageService` class.
  - Add `tests/test_zap_scanner.py` with unit tests for `ZapScanner` class.
  - Add `tests/test_nexpose_scanner.py` with unit tests for `NexposeScanner` class.
  - Add `tests/test_openvas_scanner.py` with unit tests for `OpenVASScanner` class.
  - Add `tests/test_main.py` with unit tests for `main.py`.
  - Add `tests/test_scanner.py` with unit tests for `Scanner` class.
  - Add `tests/test_init.py` with unit tests for `__init__.py`.

* **GitHub Actions Workflow:**
  - Add `.github/workflows/test.yml` to run unit tests on PRs.
  - Set up Python environment using `actions/setup-python`.
  - Check out the repository using `actions/checkout`.
  - Install dependencies using `pip`.
  - Run unit tests using `pytest`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/vs4vijay/ScanMaster/issues/98?shareId=XXXX-XXXX-XXXX-XXXX).
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
17 Security Hotspots

See analysis details on SonarCloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant