Skip to content

test: add contract and parser coverage for website-recon-2#767

Open
mythri2405 wants to merge 1 commit into
utksh1:mainfrom
mythri2405:test-website-recon2-coverage
Open

test: add contract and parser coverage for website-recon-2#767
mythri2405 wants to merge 1 commit into
utksh1:mainfrom
mythri2405:test-website-recon2-coverage

Conversation

@mythri2405

Copy link
Copy Markdown

Description

Adds contract and parser coverage for the website-recon-2 plugin.

Changes

  • Added metadata contract tests for website-recon-2
  • Added plugin validation tests using PluginMetadataValidator
  • Added command rendering tests through PluginManager
  • Added parser contract tests with deterministic fixture data
  • Added assertions for parser severity classification
  • Added empty-output handling tests
  • Added metadata preservation checks for parsed findings

This improves coverage for the plugin and helps detect regressions in metadata validation, command rendering, and parser normalization.

Related Issues

Closes #519

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Executed the plugin-specific test suite:

python -m pytest testing/backend/test_website_recon_2_plugin.py -q

The tests verify:

  • Metadata loading and validation
  • Plugin command rendering
  • Plugin loading through PluginManager
  • Parser output contract
  • Severity classification
  • Empty output handling
  • Metadata preservation

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.
  • My changes generate no new warnings.

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.

[TEST] Add parser and contract coverage for plugin website-recon-2

1 participant