Skip to main content
Glama
CaptureEndToEndTests.swift1.01 kB
import Commander import Foundation import PeekabooCore import Testing @testable import PeekabooCLI // Note: These are lightweight, non-I/O tests—real screen/video IO is not exercised here. // They validate flag validation and MP4 toggle plumbing to replace the removed watch suites // without requiring fixtures or permissions. @Suite("Capture command validation") struct CaptureEndToEndTests { @Test("video flags reject dual sampling") func videoMutualExclusion() async throws { var cmd = CaptureVideoCommand() cmd.input = "/tmp/foo.mov" cmd.sampleFps = 2 cmd.everyMs = 100 await #expect(throws: ValidationError.self) { _ = try await cmd.run(using: CommandRuntime.makeDefault()) } } @Test("live uses temp output when no path provided") func liveTempPath() async throws { var cmd = CaptureLiveCommand() let url = try cmd.resolveOutputDirectory() #expect(url.path.contains("capture-sessions")) } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/steipete/Peekaboo'

If you have feedback or need assistance with the MCP directory API, please join our Discord server