Skip to content

test(plugins): add parser and contract coverage for google-dorking (#498)#729

Merged
utksh1 merged 2 commits into
utksh1:mainfrom
Ayushi-hi:test/issue-498-google-dorking-coverage
Jun 9, 2026
Merged

test(plugins): add parser and contract coverage for google-dorking (#498)#729
utksh1 merged 2 commits into
utksh1:mainfrom
Ayushi-hi:test/issue-498-google-dorking-coverage

Conversation

@Ayushi-hi

Copy link
Copy Markdown
Contributor

Related Issues

Closes #498

Type of Change

  • New test coverage (non-breaking)

Summary

Adds backend test coverage for the google-dorking plugin which had
no direct fixture-based tests. The new test file covers:

  • metadata.json contract validation
  • plugin loading via PluginManager
  • command rendering with target substitution
  • dork query pattern assertions
  • parser output normalization (findings, count, items)
  • severity classification (info vs low)
  • edge cases: empty input, 200-line cap, raw_line metadata

How Has This Been Tested?

  • 22 passed locally under pytest testing/backend -q

Checklist

  • Tests reference google-dorking explicitly
  • Metadata loads through current validation path
  • Parser output asserted with stable fixture
  • No plugin functionality modified

@utksh1 utksh1 added level:intermediate 35 pts difficulty label for moderate contributor PRs type:testing Testing work category bonus label area:backend Backend API, database, or service work area:plugins Scanner plugin metadata, schemas, or plugin runtime work gssoc:approved Admin validation: approved for GSSoC scoring labels Jun 9, 2026

@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.

Reviewed. Focused plugin parser/contract coverage with green checks.

@utksh1 utksh1 merged commit 9a629a9 into utksh1:main Jun 9, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:backend Backend API, database, or service work area:plugins Scanner plugin metadata, schemas, or plugin runtime work gssoc:approved Admin validation: approved for GSSoC scoring level:intermediate 35 pts difficulty label for moderate contributor 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 google-dorking

2 participants