Configuration reference
blop.config.ts exports a BlopConfig object. For prose see
Guides → Configuration.
BlopConfig
Section titled “BlopConfig”Every field is optional. Glob patterns plus all BlopRunOptions except
specFile, specFiles, and agentStream.
type BlopConfig = { // Discovery include?: string[]; // Glob patterns for spec discovery exclude?: string[]; // Glob patterns to skip cwd?: string; // Working directory (default: process.cwd())
// App under test baseUrl?: string; browserContext?: BrowserContextOptions; // Playwright BrowserContextOptions
// Browser browser?: BlopBrowserName; // "chromium" | "camoufox" | "firefox" | "webkit" viewport?: { width: number; height: number }; headed?: boolean;
// Agent provider?: string; model?: string; apiKey?: string; maxSteps?: number; // Default: 100 timeoutMs?: number; // Per-test wall-clock cap retries?: number; // Default: 0
// Reporting reporter?: BlopReporter; // "basic" | "json" | "junit" | "all" (default: "all") reportDir?: string; // Default: ".blop" verbose?: boolean; // Default: false
// Platform platformUrl?: string; platformApiKey?: string;};Supported file names
Section titled “Supported file names”Blop auto-discovers any of:
blop.config.tsblop.config.mtsblop.config.jsblop.config.mjs
Override with --config path/to/file.ts.
Precedence
Section titled “Precedence”Later sources win:
- Defaults baked into the runtime
blop.config.ts- Environment variables (
BLOP_AGENT_*, provider-native keys) - CLI flags
loadBlopConfig(cwd?, configPath?)
Section titled “loadBlopConfig(cwd?, configPath?)”Internal helper exposed for tooling.
import { loadBlopConfig } from "blop";
const config = await loadBlopConfig();// Returns BlopConfig with defaults appliedResolves the first matching config file in cwd, or loads the explicit
configPath if provided.
BlopBrowserName
Section titled “BlopBrowserName”type BlopBrowserName = "chromium" | "camoufox" | "firefox" | "webkit";BlopReporter
Section titled “BlopReporter”type BlopReporter = "basic" | "json" | "junit" | "all";| Value | Files written |
|---|---|
basic |
Console output only |
json |
results.json + events.jsonl |
junit |
results.json + events.jsonl + report.xml |
all |
Same as junit |