Skip to content

feat(vscode+data): unit tests, perf budgets, input validation, searchability tests - #929

Merged
Gbangbolaoluwagbemiga merged 2 commits into
HyperSafeD:mainfrom
CelestinaBeing:feat/issue-606-618-666-740-vscode-data-tests
Jun 25, 2026
Merged

feat(vscode+data): unit tests, perf budgets, input validation, searchability tests#929
Gbangbolaoluwagbemiga merged 2 commits into
HyperSafeD:mainfrom
CelestinaBeing:feat/issue-606-618-666-740-vscode-data-tests

Conversation

@CelestinaBeing

Copy link
Copy Markdown
Contributor

Summary

  • vscode-extension — 27 unit tests for analyzer.ts covering all detection paths (auth gaps, panic/unwrap/expect, arithmetic overflow, deduplication, clean-contract baseline, edge cases) using Node's built-in node:test runner — zero new npm dependencies.
  • vscode-extension — Status bar item showing analysis state and live hint count; debounceMs clamping; sanctifierPath path-existence validation on config change; WASM error detection with actionable "Show Error Output" action in the CLI command.
  • vscode-extensiontest and lint scripts added to package.json so the VS Code Extension CI job passes end-to-end (npm ci → compile → test → lint → vsce package).
  • data/schemastest_searchability.py adds 22 tests across six test classes: ID indexability (unique, non-empty, format, lexicographic sort), category facets (kebab-case, non-empty, coverage), severity facets (valid values, lowercase), full-text search fields (name/description/recommendation non-empty), regex pattern validity, schema field declarations, and canonical fixture shape.

CI impact

Workflow Triggered by Expected result
VS Code Extension CI vscode-extension/** compile + 27 tests + lint + vsce package
Main CI — Python tests tests/vulnerability_db/** 28 tests pass (new + existing)
Contracts CI not triggered

Issues closed

Closes #606
Closes #618
Closes #666
Closes #740

…d searchability tests

- vscode-extension: add 27 unit tests covering all analyzer.ts detection paths
  (auth gaps, panic/unwrap/expect, arithmetic overflow, deduplication, edge cases)
  using Node's built-in test runner — no new npm deps required
- vscode-extension: add performance budget test (500-line contract < 100ms)
- vscode-extension: add status bar item showing analysis state and hint count (HyperSafeD#606)
- vscode-extension: harden debounceMs clamping to config-declared min/max (HyperSafeD#606)
- vscode-extension: validate sanctifierPath on disk when config changes (HyperSafeD#606)
- vscode-extension: detect and surface wasm32 compilation failures with actionable
  error messages and 'Show Error Output' action (HyperSafeD#618)
- vscode-extension: add test + lint scripts to package.json so CI passes
- data/schemas: add test_searchability.py with 22 tests covering ID indexability,
  category/severity facets, full-text search fields, regex pattern validity,
  schema field declarations, and fixture shape validation (HyperSafeD#666)

Closes HyperSafeD#606
Closes HyperSafeD#618
Closes HyperSafeD#666
Closes HyperSafeD#740
@vercel

vercel Bot commented Jun 25, 2026

Copy link
Copy Markdown

@Gbangbolaoluwagbemiga is attempting to deploy a commit to the gbangbolaoluwagbemiga's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jun 25, 2026

Copy link
Copy Markdown

@CelestinaBeing Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Gbangbolaoluwagbemiga
Gbangbolaoluwagbemiga merged commit 5dcc852 into HyperSafeD:main Jun 25, 2026
14 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment