Getting Started: Capture Your First Test Execution in 10 Minutes
See your test executions captured in the Obvyr dashboard. Fast setup, zero workflow disruption.
How Obvyr Works
Obvyr provides test-level insights by parsing JUnit XML output from your test runs. When you wrap your test command with obvyr-cli, it captures the JUnit XML file and parses individual test results to identify flaky tests, track pass rates, and monitor execution times. Without JUnit XML, Obvyr only captures command output without test-level insights.
Choosing Your Integration
| Stack | Recommended approach |
|---|---|
| Most stacks (Python, Node, Ruby, Go, …) | Obvyr CLI — wraps any command; this guide covers it |
| JVM / Gradle projects | Gradle plugin — hooks into test tasks, no wrapper needed |
| Everything else | Collect API — submit data directly when no SDK exists yet |
This guide walks through the CLI. If you're on a Gradle project, head to the Gradle plugin page instead.
Set Up With an AI Coding Agent
If you use an AI coding agent such as Claude Code, Cursor, or GitHub Copilot, it can do the setup for you. You create the token; the agent reads these docs and wires Obvyr into your project, whatever your stack.
- Create a project and an Obvyr agent in the dashboard and copy the API token (Steps 1 and 2 below).
- Make the token available as the
OBVYR_PROFILES__DEFAULT__API_KEYenvironment variable (OBVYR_API_KEYfor the Gradle plugin), or in a.envfile that is excluded from version control. - Give your AI coding agent this prompt:
text
Set up Obvyr (https://docs.obvyr.com) to capture this project's test runs.
Read https://docs.obvyr.com/llms.txt first, then the pages it lists that apply
to this project.
1. Work out how this project runs its tests, locally and in CI, and how to make
the test runner write JUnit XML.
2. Choose the integration: the Gradle plugin for Gradle projects, otherwise the
Obvyr CLI run with `uvx obvyr-cli`.
3. Wrap the existing test commands. Do not change the tests or what the
commands do.
4. Configure Obvyr through environment variables: the JUnit XML path as an
attachment path, the user as an execution context, and tags. Use three
execution contexts, never a person's name:
- people running tests locally: user `local-dev`, tag `local`
- AI coding agents running tests locally: user set to the agent's name (for
example `claude-code`, `cursor`, or `copilot`), tags `local,agent`
- CI: user such as `github-ci`, tag `ci`
5. Make the AI agent context apply without relying on an agent remembering it.
The CLI reads `OBVYR_CLI_USER` and `OBVYR_PROFILES__DEFAULT__TAGS` from the
environment, and values already in the environment take precedence over
`.env`. So:
- Put the values for people (`local-dev`, `local`) in `.env` or the
developer's shell, and do not set them inside test scripts, where they
would override the agent's values.
- For Claude Code, set both variables in the `env` block of
`.claude/settings.json`, which applies to every command it runs.
- For agents without an equivalent setting, add a line to their instruction
file (for example `AGENTS.md` or `.cursor/rules`) telling them to prefix
test commands with both variables.
- With the Gradle plugin (version 1.1.2 or later), the variables are
`OBVYR_USER` and `OBVYR_TAGS`. Set them in the same way, and do not set
`user` or `tags` in the build script, because those override the
environment.
6. I have already created an Obvyr agent token. Read it from the environment
variable the docs name for the integration you chose. Never print it,
hard-code it, or commit it. For CI, tell me which secret to add.
7. If you used the CLI, check your work with
`uvx obvyr-cli --dry-run <test command>`, which prints what would be sent
without sending it, and show me the result.
8. Show me the changes to scripts, agent configuration, and CI configuration
before you apply them.Three execution contexts
The prompt sets up three contexts: people running tests locally (local-dev, tagged local), AI coding agents running tests locally (the agent's name, tagged local and agent), and CI (tagged ci). This is what lets the dashboard show who or what ran the tests: people, AI agents, or CI. Obvyr does not detect agents by itself; it relies on this configuration. Flaky-test detection counts runs tagged ci or production by default.
Review the changes
Check what the agent changed before you merge it, especially CI configuration and anything that touches secrets.
Prefer to do it by hand? The rest of this guide walks through each step.
What You'll Achieve
By following this guide, you'll:
- Create a project and agent in Obvyr
- Install the Obvyr CLI
- Configure JUnit XML output from your tests
- Run your first wrapped test command
- See test-level insights in your dashboard
Time: ~10 minutes Result: Your tests now contribute to pattern analysis and flaky test detection
Prerequisites
Before you start, ensure you have:
- Python 3.14 or later, or uv, which downloads a suitable Python for you (see Option A in Step 3)
- An existing test runner that generates JUnit XML output (e.g.,
pytest,npm test,mvn test,gradle test,go test) - An Obvyr account with permissions to create projects (sign up here if you do not have one yet)
JUnit XML for Test-Level Insights
While Obvyr captures all command executions, JUnit XML output enables test-level insights (individual test pass rates, flaky test detection, execution times). Most test frameworks support JUnit XML output:
- pytest:
pytest --junitxml=test-results/junit.xml tests/ - npm/Jest: Configure
jest.config.jswithreporters: ['default', 'jest-junit'] - Maven: JUnit XML generated automatically in
target/surefire-reports/ - Gradle:
test { reports.junitXml.enabled = true } - Go:
go test -v 2>&1 | go-junit-report > test-results/junit.xml
Step 1: Create Your Project (1 minute)
- Log into the Obvyr dashboard. New to Obvyr? Create an account first
- Navigate to Projects
- Click Create Project
- Enter a project name (e.g., "My API", "Frontend App")


Project Names
Choose names that help you organise your test data: by codebase, by team, or by environment.
Step 2: Create Your CLI Agent (1 minute)
- Open your newly created project
- Click Create Agent
- Name your agent based on what it will monitor (e.g., "Unit Tests", "Lint", "Type Check")
- Copy the API token - it's only shown once!


Keep Your API Token Safe
Treat this token like a password. Store it as an environment variable, never commit it to source control.
Why Separate Agents?
Different test types have different patterns. Separate agents let Obvyr analyse each type independently:
- Unit tests might be flaky due to timing issues
- Linting is deterministic but slow
- Type checking catches specific bug classes
Separate agents give you targeted insights for each.
Step 3: Install the Obvyr CLI (2 minutes)
Obvyr CLI is distributed as a Python package via PyPI. Choose your installation method:
Option A: uvx (Recommended - Fast & Simple)
Runs obvyr-cli without persistent installation. Fast, always uses latest version, perfect for CI/CD. If your machine does not have Python 3.14 or later, uv downloads a suitable one automatically.
bash
# Install uv (if not already installed)
brew install uv # macOS
pip install uv # Linux / Windows
# Verify
uvx obvyr-cli --helpWith uvx, prepend uvx obvyr-cli to your test commands (see Step 5).
Option B: pipx (Isolated Installation)
Installs obvyr-cli in an isolated environment that won't conflict with your projects. Requires Python 3.14 or later.
bash
# Install pipx (if not already installed)
brew install pipx # macOS
pip install pipx # Linux / Windows
# Install obvyr-cli
pipx install obvyr-cliVerify installation:
bash
obvyr-cli --helpOption C: pip (Traditional Installation)
No extra tools needed (pip comes with Python 3.14 or later). Installs directly in current Python environment. May conflict with project dependencies.
bash
pip install obvyr-cliVerify installation:
bash
obvyr-cli --helpStep 4: Configure the CLI (2 minutes)
Set your API token, user identifier, and JUnit XML attachment path:
Option A: Environment Variables
bash
# Required: API token from Step 2
export OBVYR_PROFILES__DEFAULT__API_KEY="your-token-here"
# Required: Path to JUnit XML file for test-level insights
export OBVYR_PROFILES__DEFAULT__ATTACHMENT_PATHS="test-results/junit.xml"
# Recommended: Execution context identifier (NOT individual names)
export OBVYR_CLI_USER="local-dev"Option B: .env File
Create a .env file in your project directory:
bash
# Required: API token from Step 2
OBVYR_PROFILES__DEFAULT__API_KEY=your-token-here
# Required: Path to JUnit XML file for test-level insights
OBVYR_PROFILES__DEFAULT__ATTACHMENT_PATHS=test-results/junit.xml
# Recommended: Execution context identifier (NOT individual names)
OBVYR_CLI_USER=local-devOBVYR_CLI_USER: Context Not Identity
Use OBVYR_CLI_USER to identify the execution context, not individual people:
- ✅ Good:
local-dev,github-ci,jenkins-runner,automation - ❌ Avoid: Individual names or usernames (data protection/privacy)
This helps you analyse patterns by environment (local vs CI, developer vs automation) without collecting personal data.
JUnit XML Required for Insights
The ATTACHMENT_PATHS configuration tells Obvyr where to find your JUnit XML file. Without this, Obvyr only captures command output - you won't get test-level insights (pass rates, flaky detection, individual test metrics).
Exclude .env from Version Control
Add .env to your .gitignore to prevent accidentally committing your API token.
Advanced Configuration
These are the essential settings for test-level insights. For advanced options (tags, multiple attachment paths, multiple profiles), see the CLI Configuration guide.
Step 5: Run Your First Wrapped Command (2 minutes)
Wrap your existing test command:
If using uvx (recommended):
bash
# Python (pytest)
uvx obvyr-cli pytest --junitxml=test-results/junit.xml tests/
# JavaScript/TypeScript (npm)
uvx obvyr-cli npm test
# Java (Maven)
uvx obvyr-cli mvn testIf using pipx or pip:
bash
# Python (pytest)
obvyr-cli pytest --junitxml=test-results/junit.xml tests/
# JavaScript/TypeScript (npm)
obvyr-cli npm test
# Java (Maven)
obvyr-cli mvn testJVM/Gradle project?
The dedicated Gradle plugin is the recommended approach — it hooks directly into your test task with no wrapper needed.
What happens: Your tests run exactly as before. The CLI captures comprehensive execution data (stdout/stderr, timing, exit code, environment) and sends it to Obvyr.
What Obvyr Captures
The CLI captures complete execution context:
- Command output (stdout and stderr) - Analyse failure patterns
- Execution duration - Identify slowdowns over time
- Exit code - Track success/failure status
- User - Understand who ran the command
- Timestamp and environment - Compare execution patterns
- Test framework metadata (e.g., JUnit XML) - Deep test-level insights
Individual observations are data points. Patterns across 50+ observations become insights.
Step 6: View Your Observation in the Dashboard (1 minute)
- Return to the Obvyr dashboard
- Navigate to your project → your agent
- See your first observation with complete execution details

What you'll see:
- Full command output
- Execution timing and duration
- Environment context (user, timestamp, system info)
- Test framework metadata (if JUnit XML available)
What this becomes: After 50-100 executions, individual observations become patterns. You'll see which tests are flaky, how local differs from CI, and where your test suite provides value.

Next Steps: Maximise Value
Immediate: Add CI/CD Integration (10 minutes)
Get the most value by capturing both local and CI executions:
The CLI Reference has complete GitHub Actions, GitLab CI, and Jenkins examples using uvx (recommended). Each one installs uv before it calls uvx.
Why uvx for CI/CD?
Using uvx in CI/CD pipelines:
- No persistent install of obvyr-cli - runs directly without
pip install obvyr-cli - Always uses latest version - automatic updates without maintenance
- No dependency conflicts - doesn't interfere with your project's dependencies
uvx avoids a persistent install of obvyr-cli, not the install of uv. Install uv in your pipeline before you call uvx.
Short-Term: Add More Test Types (5 minutes per agent)
Create separate agents for different test suites:
bash
# Unit tests
export OBVYR_PROFILES__UNIT__API_KEY="unit-agent-token"
obvyr-cli --profile UNIT pytest tests/unit/ --junitxml=test-results/unit.xml
# Integration tests
export OBVYR_PROFILES__INTEGRATION__API_KEY="integration-agent-token"
obvyr-cli --profile INTEGRATION pytest tests/integration/ --junitxml=test-results/integration.xml
# End-to-end tests
export OBVYR_PROFILES__E2E__API_KEY="e2e-agent-token"
obvyr-cli --profile E2E npm run test:e2eSee CLI Configuration for multi-profile setup details.
Ongoing: Build Evidence (50+ executions)
After 50-100 executions, you'll see:
- Flaky test identification - which tests fail inconsistently
- Pattern insights - correlation with users, environments, timing
- Test-level metrics - pass rates, execution times, failure patterns
The transformation:
- First run: "Test passed in 1.2s" (data point)
- After 50 runs: "Test passed 47/50 times (94% reliable), fails only in CI, pattern suggests network timeout" (insight)
Troubleshooting
"Command not found: obvyr-cli"
If using uvx (recommended): Always use the full uvx obvyr-cli command. No PATH configuration needed.
If using pipx or pip: Ensure the installation directory is in your PATH.
bash
# Check where pipx installs binaries
pipx list
# Add to PATH if needed (add to ~/.bashrc or ~/.zshrc)
export PATH="$PATH:$HOME/.local/bin""Profile 'DEFAULT' not found" Warning
The CLI prints this warning when it cannot find the profile it needs. Your command still runs and its exit code is passed through unchanged, but nothing is sent to Obvyr. You haven't set the required OBVYR_PROFILES__DEFAULT__API_KEY environment variable.
bash
# Check if it's set
echo $OBVYR_PROFILES__DEFAULT__API_KEY
# If empty, set it
export OBVYR_PROFILES__DEFAULT__API_KEY="your-token-here"Observation Not Appearing in Dashboard
- Check network connectivity: Ensure you can reach
https://api.obvyr.com - Verify API token: Ensure you copied the correct token from Step 2
- Check agent status: Ensure your agent is active (not disabled) in the dashboard
- Review CLI output: Run with verbose logging to see what's happening:bash
obvyr-cli --verbose pytest tests/
Tests Fail When Wrapped with Obvyr
The CLI should never affect test outcomes. If tests pass without obvyr but fail with it:
- Check for output buffering issues: Some test frameworks buffer output differently
- Verify no environment variable conflicts: The CLI adds
OBVYR_*env vars - Report the issue: This is unexpected - please report at github.com/wyrd-technology/obvyr
Explore Further
- CLI Configuration - Advanced setup: tags, attachments, multiple profiles
- Gradle Plugin - Zero-wrapper integration for JVM/Gradle projects
- Collect API Reference - Build a custom integration for any stack
- Why Obvyr? - Understand the complete value proposition
- Problems Solved - See specific testing challenges Obvyr addresses
- FAQ - Common questions and answers
You're Now Collecting Evidence
Congratulations! Every test run from every developer and every CI pipeline now contributes to proving test reliability.
Keep Running Tests
The more you and your team use Obvyr, the stronger your evidence becomes. Patterns emerge from data. Run your tests through Obvyr consistently, and insights will follow.