Skip to content

Disclose backend test coverage and CI workflow#129

Open
hoogvliets wants to merge 1 commit into
willchen96:mainfrom
hoogvliets:disclose/test-coverage
Open

Disclose backend test coverage and CI workflow#129
hoogvliets wants to merge 1 commit into
willchen96:mainfrom
hoogvliets:disclose/test-coverage

Conversation

@hoogvliets
Copy link
Copy Markdown

@hoogvliets hoogvliets commented May 14, 2026

Part of the downstream AGPL disclosure. This PR isolates backend test coverage and CI additions for easier review.

Scope

Test Infrastructure

  • Adds Vitest config files for no-db, DOCX, golden log, auth hardening, saga, and broader integration suites.
  • Adds backend package scripts for running each suite directly.
  • Adds test dependencies such as Vitest and Supertest.

Auth and Access Tests

  • Adds auth hardening coverage for cache behavior, failure modes, OR filters, empty emails, people lookup, and random UUID imports.
  • Adds cross-tenant access matrix tests, shared-user tests, helper shape tests, explain helpers, seed helpers, setup, and teardown.

Document and Chat Tests

  • Adds DOCX round-trip fixtures and tests, including insertion, deletion, replacement, tables, bullets, headings, Unicode, smart quotes, nonbreaking spaces, and edge cases.
  • Adds golden log/SSE tests for citations, reasoning, and tool-call event behavior.
  • Adds unit coverage for chat tool dispatch, citation parsing, JSON parsing, edit status hydration, and replicate limits.

Integration and Saga Tests

  • Adds integration coverage for API keys, audit logs, deleted auth handling, chat stream failures, crypto round trips, account deletion/restore, document version concurrency, upload validation, downloads, generated titles, model endpoints, tabular flows, workers, and built-in workflows.
  • Adds saga tests for edit resolution, fan-out bounds, reuse-version behavior, and unique version handling.

CI

  • Adds .github/workflows/test-docx.yml for DOCX test coverage in GitHub Actions.

Review Note

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.

2 participants