Skip to content

v1.3.2 — Comprehensive Test Suite

Latest

Choose a tag to compare

@gunvertugberk gunvertugberk released this 13 Apr 20:22
· 1 commit to master since this release
e245740

Added

  • Comprehensive test suite — 238 tests across 10 test files using Vitest
    • utils/security.test.ts (44 tests) — escapeIdentifier, validateQuery, isDatabaseAllowed, isSchemaAllowed, applyMasking, ensureRowLimit
    • utils/formatter.test.ts (14 tests) — markdown table formatting, ISO dates, NULL handling, truncation, JSON output
    • tools/schema.test.ts (22 tests) — all 9 schema discovery tools with access control and schema filtering
    • tools/query.test.ts (21 tests) — execute_query/execute_mutation with validation, masking, multi-server
    • tools/ddl.test.ts (11 tests) — DDL gating, blocked keywords, database access
    • tools/procedure.test.ts (18 tests) — list/describe/execute_procedure with readonly gating
    • tools/performance.test.ts (18 tests) — query plans, active queries, table/index stats, server/db info
    • tools/dba.test.ts (48 tests) — wait stats, deadlocks, blocking, backups, query store, health check
    • tools/utility.test.ts (42 tests) — compare_schemas, generate_code, ER diagram, sample_table, export_query
  • npm test and npm run test:watch scripts
  • Test helper utilities (tests/tools/_helpers.ts)

Changed

  • Updated project docs (CLAUDE.md, workflow.md, tool-authoring.md, coding-standards.md) to reflect test availability

Full Changelog: v1.3.1...v1.3.2