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 #98

Open
vs4vijay opened this issue Jul 30, 2024 · 0 comments
Open

Add Unit Tests #98

vs4vijay opened this issue Jul 30, 2024 · 0 comments

Comments

@vs4vijay
Copy link
Owner

Generate Unit Tests for this code and make PR Gate

vs4vijay added a commit that referenced this issue 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](https://copilot-workspace.githubnext.com/vs4vijay/ScanMaster/issues/98?shareId=XXXX-XXXX-XXXX-XXXX).
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

No branches or pull requests

1 participant