Skip to content

Testing & Docs Consolidation Summary โ€‹

Date: January 17, 2026
Status: โœ… Complete

Overview โ€‹

Consolidated fragmented testing documentation and created a clear single source of truth for each testing domain. All content is now organized with clear navigation and cross-references.


What Changed โ€‹

1. Application Testing Documentation (NEW LOCATION) โ€‹

Previous location: docs/engineering/testing/
New location: docs/engineering/guides/testing/

This reorganization clarifies that these are developer guides for testing application features, separate from unit tests and workflow automation.

Files moved:

  • LOCAL_TESTING.md - Signup flows and manual testing
  • CODE_COVERAGE_REFERENCE.md - Coverage reporting
  • PIXEL_TESTING.md - Mobile device testing
  • TEST_CROSS_DEVICE_SYNC.md - Multi-device profile sync testing
  • VENUE_TESTING_GUIDE.md - Venue and lantern testing

New file added:

  • README.md - Testing guide hub with navigation and best practices

2. Unit Tests Organization (CLARIFIED) โ€‹

Location: src/__tests__/

New file added:

  • README.md - Test organization, running tests, writing tests, and best practices

Scope clarified:

  • Unit tests for components and utilities
  • Vitest configuration
  • Workflow-specific tests (AI triage, GitHub automation)
  • Coverage reporting

3. GitHub Workflows Documentation Hub (NEW) โ€‹

Location: docs/engineering/github/ (Navigation layer)
Actual content: .github/workflows/docs/ (Unchanged)

This creates a logical hierarchy in VitePress while keeping actual workflow files in .github/.

New files:

  • docs/engineering/github/README.md - GitHub topics overview (future-proof for other GitHub topics)
  • docs/engineering/github/workflows/README.md - Workflows navigation hub with links to .github/workflows/docs/

Benefits:

  • VitePress sidebar shows: Engineering โ†’ GitHub โ†’ Workflows
  • All workflow test scripts stay in .github/workflows/
  • Content files stay in .github/workflows/docs/
  • Navigation is clear without duplicating files

4. Updated Documentation Index โ€‹

docs/DOCS_INDEX.md - Updated section on testing:

  • Links to new testing guide location
  • References to unit test README
  • Links to new GitHub workflows hub
  • Clarifies different testing types

docs/engineering/README.md - Updated directory structure:

  • Reorganized testing section
  • Added GitHub integration section
  • Clarified testing guide locations

.github/workflows/docs/README.md - Added navigation note:

  • Indicates content is also accessible from main docs
  • Links back to the VitePress navigation

New Structure โ€‹

Testing Documentation (Three Tiers) โ€‹

1. Application Testing (Development Guides)
   docs/engineering/guides/testing/
   โ”œโ”€โ”€ README.md                      (Hub)
   โ”œโ”€โ”€ LOCAL_TESTING.md               (Manual testing)
   โ”œโ”€โ”€ TEST_CROSS_DEVICE_SYNC.md      (Profile sync)
   โ”œโ”€โ”€ VENUE_TESTING_GUIDE.md         (Features)
   โ”œโ”€โ”€ PIXEL_TESTING.md               (Mobile)
   โ””โ”€โ”€ CODE_COVERAGE_REFERENCE.md     (Coverage)

2. Unit Tests (Code Tests)
   src/__tests__/
   โ”œโ”€โ”€ README.md                      (Organization & setup)
   โ”œโ”€โ”€ *.test.jsx                     (Component tests)
   โ””โ”€โ”€ workflows/
       โ”œโ”€โ”€ *.test.js                  (Workflow tests)
       โ””โ”€โ”€ README.md                  (Workflow test guide)

3. Workflow Automation Tests (CI/CD)
   .github/workflows/
   โ”œโ”€โ”€ docs/
   โ”‚   โ”œโ”€โ”€ testing/                   (Test procedures)
   โ”‚   โ”œโ”€โ”€ ai-triage/                 (Implementation ref)
   โ”‚   โ””โ”€โ”€ discord/                   (Implementation ref)
   โ””โ”€โ”€ *.sh                           (Test scripts)

Navigation Hub:
   docs/engineering/github/workflows/README.md
   โ””โ”€โ”€ Links to .github/workflows/docs/

Single Source of Truth โ€‹

Each domain now has ONE clear home:

DomainPurposeLocation
Application TestingManual feature testing, signup flows, device testingdocs/engineering/guides/testing/
Unit TestsComponent and utility testssrc/__tests__/
Unit Test OrganizationHow tests are organized, running testssrc/__tests__/README.md
Workflow TestsCI/CD automation testing.github/workflows/docs/testing/
Workflow AutomationGitHub Actions, issue triage, Discord.github/workflows/
Workflow NavigationEasy discovery from VitePressdocs/engineering/github/workflows/

Cross-References Added โ€‹

In Application Testing Guides โ€‹

  • Link to unit tests: src/__tests__/README.md
  • Link to workflow automation: docs/engineering/github/workflows/
  • Link to environment setup: docs/engineering/guides/ENVIRONMENT_SETUP.md

In Unit Tests โ€‹

  • Link to application testing: docs/engineering/guides/testing/
  • Link to workflow tests: .github/workflows/docs/testing/
  • Link to coverage: docs/engineering/guides/testing/CODE_COVERAGE_REFERENCE.md

In Workflow Docs โ€‹

  • Link to main docs: docs/engineering/github/workflows/
  • Note in .github/workflows/docs/README.md about navigation

In VitePress Index โ€‹

  • Complete mapping of all testing locations
  • Clear distinction between testing types
  • Links to new navigation hub

Benefits of This Consolidation โ€‹

โœ… Clear Boundaries - Each testing type has its purpose and location
โœ… No Duplication - Content lives in ONE place
โœ… Easy Navigation - VitePress sidebar organizes logically
โœ… Single Source of Truth - No confusion about where to find what
โœ… Future-Proof - GitHub directory can grow with other topics
โœ… Developer-Friendly - Clear README files explain organization
โœ… Cross-Referencing - All docs link to related resources


Files Created/Modified โ€‹

New Files โ€‹

docs/engineering/github/README.md
docs/engineering/github/workflows/README.md
docs/engineering/guides/testing/README.md
docs/engineering/guides/testing/LOCAL_TESTING.md
docs/engineering/guides/testing/CODE_COVERAGE_REFERENCE.md
docs/engineering/guides/testing/PIXEL_TESTING.md
docs/engineering/guides/testing/TEST_CROSS_DEVICE_SYNC.md
docs/engineering/guides/testing/VENUE_TESTING_GUIDE.md
src/__tests__/README.md

Updated Files โ€‹

docs/DOCS_INDEX.md
docs/engineering/README.md
.github/workflows/docs/README.md

Next Steps โ€‹

Optional Cleanup โ€‹

  • The old docs/engineering/testing/ directory can be deleted after verifying links work
  • Update VitePress sidebar configuration to auto-generate if needed

Maintenance โ€‹

  • Keep all READMEs current as new tests are added
  • Update cross-references when moving files
  • Use these READMEs as templates for new testing documentation

VitePress Sidebar โ€‹

If using manual sidebar configuration, ensure these entries exist:

javascript
// Under Engineering
{
  text: 'GitHub',
  items: [
    {
      text: 'Workflows',
      link: '/engineering/github/workflows/'
    }
  ]
},
{
  text: 'Guides',
  items: [
    {
      text: 'Testing',
      link: '/engineering/guides/testing/'
    }
  ]
}

Summary โ€‹

We've created a well-organized, clearly documented testing infrastructure with:

  • Application Testing Guides in docs/engineering/guides/testing/ with comprehensive README
  • Unit Tests organized in src/__tests__/ with setup and organization guide
  • Workflow Automation Testing in .github/workflows/docs/ with testing procedures
  • Navigation Hub in docs/engineering/github/workflows/ for easy VitePress discovery
  • Cross-references throughout so developers can find exactly what they need

Result: Single source of truth for each testing domain. Clear navigation. No duplication.

Built with VitePress