live-tests

Community

Record Copilot API calls into replayable fixtures.

Authormatteing
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Provides a VCR-like workflow for integration tests by recording real GitHub Copilot API SSE events and saving them as deterministic JSON fixtures to eliminate flaky, network-dependent tests.

Core Features & Use Cases

  • Live recording: Use RecordingProvider to wrap the real Copilot provider and buffer SSE events to persistent storage during a live test run.
  • Fixture generation: Convert buffered SSE events into JSON fixtures saved under test/support/fixtures for deterministic replay in CI and local development.
  • Fixture-based replay: Use FixtureProvider and FixtureHelper to replay recorded events, enabling fast, network-free integration tests that assert agent behavior and tool calls.
  • Guidance & rules: Enforces constrained system prompts for determinism, naming conventions for fixtures, and tagging of live tests to control recording and saving.

Quick Start

Record a live Copilot session that captures SSE events and save them as test/support/fixtures/responses_api_tool_call.json for replay.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: live-tests
Download link: https://github.com/matteing/opal/archive/main.zip#live-tests

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.