Skip to content

Add integration tests #6

@cv

Description

@cv

Summary

Add integration tests to verify communication between CLI, Native Host, and Chrome Extension components.

Background

PR #2 added the testing infrastructure with vitest. The test/integration/ directory exists but is empty.

Scope

Integration tests should cover:

CLI ↔ Native Host

  • Unix socket connection establishment
  • JSON message serialization/deserialization
  • Request/response round-trips
  • Timeout and error handling

Native Host ↔ Extension

  • Native messaging protocol
  • Tool request dispatching
  • Response handling and formatting

Full Command Flows

  • surf tab.list → returns tab data
  • surf go <url> → navigates and returns result
  • surf screenshot → captures and saves image
  • surf read → returns accessibility tree + text

Notes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions