Skip to content

test: add coverage for zap scanner plugin#769

Merged
utksh1 merged 2 commits into
utksh1:mainfrom
deepsikha-dash:test-zap-scanner-coverage
Jun 11, 2026
Merged

test: add coverage for zap scanner plugin#769
utksh1 merged 2 commits into
utksh1:mainfrom
deepsikha-dash:test-zap-scanner-coverage

Conversation

@deepsikha-dash

Copy link
Copy Markdown
Contributor

Description

  • Added direct parser and contract coverage for the zap_scanner plugin.
  • Added a deterministic fixture for parser testing.
  • Verified plugin metadata loading through the validation path.
  • Verified command rendering for representative target inputs.
  • Verified parser output normalization into stable SecuScan findings/results.

Related Issues

Closes #521

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

How Has This Been Tested?

Executed:

pytest testing/backend/unit/test_zap_scanner_plugin.py -v

Result:

5 passed

The test suite verifies:

  • Plugin metadata loading
  • Command rendering
  • Parser fixture output
  • Empty output handling
  • Executor normalization behavior

Checklist

  • My code follows the code style of this project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.

@utksh1 utksh1 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Focused parser/contract coverage for zap_scanner. The fixture expectations match the current metadata, command template, parser behavior, and executor normalization contract.

@utksh1 utksh1 added level:beginner 20 pts difficulty label for small beginner-friendly PRs type:testing Testing work category bonus label area:plugins Scanner plugin metadata, schemas, or plugin runtime work labels Jun 11, 2026
@utksh1 utksh1 merged commit 6f1a46a into utksh1:main Jun 11, 2026
10 checks passed
@utksh1 utksh1 added the gssoc:approved Admin validation: approved for GSSoC scoring label Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:plugins Scanner plugin metadata, schemas, or plugin runtime work gssoc:approved Admin validation: approved for GSSoC scoring level:beginner 20 pts difficulty label for small beginner-friendly PRs type:testing Testing work category bonus label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TEST] Add parser and contract coverage for plugin zap_scanner

2 participants