Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit tests #99

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add unit tests #99

wants to merge 1 commit into from

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

sonarcloud bot commented Jul 30, 2024

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