Untested changes
On every pull request, evalship finds the AI calls and prompt files the pull request adds or changes, and checks whether any eval exercises them. The comment leads with this: a prompt coverage badge for the whole repository (11 / 12 when one of its 12 AI calls and prompts has no eval), then each untested one this pull request changes, above the evals that broke:
:warning: **Untested AI call:** `app/folders.py#Folders.suggest` has no eval. [Add one](https://evalship.com/docs/untested-changes#fixing-an-untested-change)
A prompt file, prompt or tool description reads Untested prompt. When the list mixes both, it reads Untested.
The badge counts the prompts your setup review listed, plus each AI call a merged pull request added.
The details block lists each one with its line and provider. This runs for pull requests on public repositories and on enabled private repositories.
What evalship looks at
evalship reads up to 25 added or modified files per pull request. Removed files are ignored.
Source files. A line is an AI call when the file imports a supported SDK or framework and the line matches that library's call pattern. The call counts as changed when the pull request changes a line within 5 lines of it, such as its prompt or arguments. When GitHub leaves out a file's diff because it is too large, every call in the file counts as changed.
| Language | Extensions | Detected libraries |
|---|---|---|
| Python | .py |
OpenAI, Anthropic, Google GenAI and Generative AI, Mistral, Cohere, LiteLLM, LangChain, LangGraph, LlamaIndex, DSPy, Pydantic AI, Instructor |
| JavaScript and TypeScript | .js .jsx .ts .tsx .mjs .cjs .mts .cts |
OpenAI, Anthropic (@anthropic-ai/sdk), Google (@google/genai, @google/generative-ai), Vercel AI SDK (ai), LangChain and LangGraph (@langchain/*), Mastra (@mastra/*) |
| Ruby | .rb |
OpenAI (OpenAI::Client), Anthropic, RubyLLM, Langchain.rb |
| Go | .go |
sashabaranov/go-openai, openai/openai-go, anthropics/anthropic-sdk-go |
In other languages, such as Java, PHP and Rust, only prompt files and the prompts your review lists count.
Examples of lines that count as calls: client.chat.completions.create(, client.messages.create(, model.generate_content(, litellm.completion(, chain.invoke(, generateText(, chat.ask "...", client.Messages.New(.
Comment lines are skipped, and a call split across lines before the method name, such as client.messages on one line and .create( on the next, is not detected.
Prompt files. Any change to a prompt file counts. Prompt files are:
.promptand.promptyfiles anywhere;.txt,.md,.mdx,.yaml,.yml,.j2,.jinja,.jinja2,.hbs,.mustache,.liquidand.tmplfiles inside a directory namedpromptorprompts, at any depth;- agent skills:
SKILL.mdfiles, and.mdand.mdxfiles inside askills/<name>/directory, such as a skill's reference files. Skills under a hidden folder such as.claude/or.agents/are the repository's own development tools and don't count.
Prompt modules. A Python, JavaScript, TypeScript, Ruby or Go file whose name or folder mentions prompts (prompt_utils.py, prompt-preset/gpt.ts, system-prompt.ts) counts as one prompt when the pull request changes a line of it that isn't blank or a comment, unless a more specific prompt or call in it is already listed. A file with more than three changed prompts or calls shows as one row. A file named for promptfoo, the eval tool (parsers/promptfoo.rb), or a database migration doesn't count.
Tool descriptions. In a Python, JavaScript or TypeScript file that defines tools a model chooses from (an MCP server, tool({...}), registerTool, @tool, or a plain list of tools for the OpenAI or Anthropic SDK), a change to a description string counts as one change to that file's tool descriptions.
Prompts from your review. The latest review lists the repository's prompts with a file and line, including prompts the patterns above can't find, such as a prompt string in a Python or TypeScript module or the instructions an MCP server sends. A listed prompt counts as changed when the pull request changes a line from where it starts up to the next definition in the file, at most 100 lines. It is found by name in the pull request's version of the file, so a review of an older commit still points at the right lines. A new upper-case string constant in a file of listed prompts counts as a new prompt that no eval runs yet.
Model changes. In a file that sets up a provider (it imports an @ai-sdk/* or @openrouter/* provider package, or Bedrock), a changed line with a model id such as "claude-sonnet-5-5" or "gpt-4o" counts too, once per file, because switching models changes every output. A model id within 5 lines of a call is part of that call.
Formatting is left out. A change that only rewraps or reindents lines, the same text apart from whitespace, doesn't count, nor does a file renamed without changes, a README or changelog in a prompts folder, or a prompt file whose only changed lines are a version or date in its front matter.
Prompt files named by an eval. A prompt file the review doesn't place counts as tested when a suite's files, or the product files a suite exercises, name it (loadPrompt("operate-user"), a promptfoo file:// path), or when the pull request's own eval files name it.
Eval code is left out. Calls and prompts in test and eval files don't count, since they are the evals: files in test, tests, spec, __tests__, eval, evals and e2e directories and in eval packages such as agent-evals/, *.eval.*, *.test.* and *.spec.* files, test_*.py, *_test.* and *_spec.rb, and the folders of the suites in your review.
Each call is named by its file and up to two levels of enclosing function or class: app/folders.py#Folders.suggest.
What counts as tested
evalship checks these in order and stops at the first match. Only evals in the current run count for the first three.
- Targets. An eval lists the file in its
targets.app/support_bot.pycovers every call in that file;app/support_bot.py#answercovers the calls insideanswer, includingSupportBot.answer. The path can be a glob:prompts/*.mdmatches files directly inprompts/, andapp/orapp/**matches everything belowapp/. See Result formats for how to set targets in each format. - Annotation. An
evalship: covered-by <pattern>comment near the call, anywhere from 3 lines above the enclosing function's definition down to the call itself. The pattern is a suite name or asuite/keyglob; separate several with commas. It must match at least one eval. - Name. A suite, an eval file or a test case's describe block (vitest and jest name a test case
generateTweet > 'Headphones') is named after the source file, function or class. Names are compared in lowercase with everything but letters and digits removed, soapp/support_bot.pyis matched by the suitesupport-botor the eval filetests/evals/test_support_bot.py. Names shorter than 4 characters and generic names (app,client,utils,llm,ai,service,api,prompt,chat,agent,modeland similar) never match. - Review. The latest review lists the prompt (same file, and the same line or symbol) with a non-empty
tested_by; an emptytested_bymeans untested, whatever else matches. Otherwise, a suite'sexerciseslists the file,file#symbol, or a prefix ending in*that the file starts with; or apromptsentry for the file with a non-emptytested_byis within 20 lines of the call.
Annotations look like this:
# evalship: covered-by support_bot
def answer(question):
return client.messages.create(model="claude-haiku-5-5", max_tokens=500, messages=[...])
// evalship: covered-by support-bot/refund-*, summarizer
export async function explainRefund(order: Order) {
return generateText({ model, prompt: refundPrompt(order) });
}
Checks that don't call a model. A suite the review marks with calls_model: false (snapshots, schema checks, unit tests of prompt text) doesn't count as testing a prompt or call; the change shows as untested, with that suite named in the details.
Plumbing. Near a call, a change counts when it's inside the call's arguments, just after the call, or in the 5 lines above it and touches a string, prompt, message, system, template, tools, schema, temperature or token setting. A changed API key, client or user id next to the call doesn't.
Not run on pull requests. When the only suites that exercise a change don't run on every pull request (their ci_triggers in the review don't include pull_request: they run by hand, on a schedule, or only with a label), the change isn't counted as untested. The comment says so instead: "Not run on PRs: prompts/review.md changed. Only reviewer-benchmark tests it, and it doesn't run on every pull request. Run it on this commit before merging." Results it sends for the pull request's latest commit join that commit's report. With gate.fail_on_flaws, the check fails until one of those suites sends results there or a member dismisses the change, unless .evalship.yml marks every one of them no_results. Results a suite sent for an earlier commit of the pull request count for later ones while nothing it runs or scores with changes: the changed call, the code the review says it exercises, its scorer, its own file, and the code in its folder (not its data files). The comment says which commit they came from. Once the pull request merges, To do lists it until main runs one of those suites, for a week at most.
Not run here. When a suite that exercises a change ran on the baseline but sent no results for this pull request, a path filter missed the change or its job crashed. The comment says "Not run here: app/prompts/review.md changed. reviewer-benchmark tests it but sent no results for this commit." With gate.fail_on_flaws, the check fails until it sends results there or a member dismisses the change. While CI still runs an eval workflow on the commit, the comment says "Waiting for CI:" instead, and that check stays in progress until the workflow finishes. A suite that skips a pull request that changes nothing it exercises isn't mentioned.
No eval results. If a pull request's latest commit still has no eval results 30 minutes after it was pushed (a minute, when the evals run on your machine), and it changes a prompt or AI call (tested or not), a suite's scoring or test cases, or the notes flag its eval changes, evalship comments anyway: "No eval results for this commit." with the same rows and notes. This needs a review. Results that arrive later replace the comment. A pull request that changes nothing a suite tests says "No eval needed." instead.
Fixing an untested change
- Let your coding agent add the eval. Click the prompt coverage badge in the comment: the report opens at the untested changes. Copy the prompt under "Ask your coding agent" and paste it into your coding agent.
- Or add one yourself: an eval that exercises the change, with
targetspointing at the file or function. This is the most reliable link, because it doesn't depend on names. - If an existing eval already covers it, add
targetsto its evals, or put acovered-byannotation next to the call. - If your review no longer matches the code, review again: the agent records anew which code each suite exercises. See Reviewing again.
The line disappears from the comment once the next run finds a covering eval. With gate.fail_on_flaws, a changed AI call or prompt with no eval fails the check until then, or until a member dismisses it.
If evalship is wrong about a pull request, anyone with push access can dismiss a file's untested or not-run calls in the report, as Wrong, Won't fix, Fixed or Later, with an optional why, and reopen them later. A Wrong on a file's untested calls holds on the repository's other pull requests too, so evalship doesn't raise them again. A call the file didn't have then is still raised.