A team ships an answer feature on a Tuesday. The demo went well, every unit test is green, and nobody touches the code for two weeks. Then the model provider rolls out an update, and the assistant starts answering a refund question with confidence and the wrong policy. Nothing in the repository changed, so nothing in the pipeline caught it.
That is the release problem with AI features. Classic automation assumes the same input gives the same output and the spec defines what correct means. Neither holds once a model is in the loop. The same question gets a different answer every run, quality is a grade rather than a pass or fail, and a provider update can change behaviour without a release.
Our release readiness checklist covers the eight gates every release needs. This is the AI feature version: nine checks to run before an LLM feature ships, the open-source tool we use for each one, and the pass rule that decides the release. The tools are the ones on our AI testing stack: DeepEval, Ragas, Promptfoo and Langfuse, plus Playwright for the app around the model. For a wider comparison of the tools themselves, read 10 LLM evaluation tools compared for 2026.
The checklist at a glance
| Check | What it proves | Tool on our stack | Pass rule or done when |
|---|---|---|---|
| 1. Inventory and thresholds | Every AI feature has a risk tier and agreed thresholds | Test plan | Risk tier, scope and thresholds agreed |
| 2. The app around the AI | Login, chat, answers and errors work with the model mocked | Playwright, pytest, API tests | 100% green on every pull request |
| 3. Golden set | Real questions with expected answers, versioned | Langfuse datasets | Sets versioned next to your prompts |
| 4. Answer quality | The answers are good, not just present | DeepEval | Every metric above threshold, no drop against baseline |
| 5. Grounding | Answers stay true to the retrieved context | Ragas | Every metric above threshold, no drop against baseline |
| 6. Attack it | Injection, jailbreaks and leaks fail | Promptfoo red team, Garak | Zero criticals, attack success under an agreed ceiling |
| 7. Speed and cost | Latency and cost per conversation hold | Tracing, load tests | Under your stated budget |
| 8. CI gates | Every pull request and every night run the checks | DeepEval | Regression pipeline in your CI: pull-request gate and nightly evals |
| 9. After launch | Drift shows up before customers notice | Langfuse | Two weeks under threshold raise an alert |
1. Inventory every AI feature and agree the thresholds first
Before a single eval runs, list every place a model touches the product: the chat, the summary button, the agent that calls another system on a user's behalf. Then classify each one by risk. A feature that drafts a reply and a feature that takes an action should not share a release bar.
The thresholds come next, in writing. If nobody agreed what "good enough" means before the release, every failing score turns into a debate instead of a decision.
On our stack: this is week one of every engagement. We inventory every AI feature, classify it by risk, walk the architecture and agree the thresholds. The output is an AI test plan with risk tier, scope and agreed thresholds.
Done when: every AI feature has a risk tier and a written threshold for each quality dimension.
2. Test the app around the AI on every pull request
AI evals do not replace normal tests. An answer can score perfectly while the button that sends the question is broken. Traditional regression tests remain necessary for the application surrounding the model.
Cover login, permissions, the chat opens, a question sends, an answer renders, exports work, error and rate-limit states behave. Mock the model, so this suite is fast and deterministic enough to run on every change.
On our stack: Playwright for UI and API flows, with pytest and API tests. The model is mocked, so it runs on every pull request.
Pass rule: 100% green on every pull request.
3. Build a golden set from real traffic
You cannot measure answer quality without a fixed set of questions to measure it on. A golden set is a set of real questions with expected answers, and it is the asset everything after this step depends on.
Langfuse, in its own docs: "A dataset is a collection of inputs and expected outputs and is used to test your application." It also lets you create test cases for your application with real production traces, which is how a failure a customer hit becomes a case the next release has to pass.
On our stack: Langfuse holds traces, datasets and drift. The golden set comes from your real traffic and your experts, plus perturbation and adversarial sets, and judge rubrics are calibrated against human labels.
Done when: golden, perturbation and adversarial datasets are versioned next to your prompts.
4. Score answer quality with DeepEval
Quality is a grade, so it needs metrics. Check grounding and relevance, use a calibrated judge model with a written rubric, check agent tool-call trajectories, and test robustness on messy input and consistency across runs and model updates.
DeepEval, in its own words: "DeepEval is a simple-to-use, open-source LLM evaluation framework, for evaluating large-language model systems. It is similar to Pytest but specialized for unit testing LLM apps." Its metrics include G-Eval, task completion, answer relevancy and hallucination, using LLM-as-a-judge.
A judge model is only as good as its calibration. Our guide to prompt regression testing covers how to calibrate the judge and how to tell a real drop from noise.
On our stack: DeepEval is the eval runner and CI gates, with Inspect AI for agent trajectories.
Pass rule: every metric above threshold, no drop against baseline.
5. If answers depend on retrieval, check grounding with Ragas
When your feature searches documents before it answers, a wrong answer can come from the retriever, not the prompt. Version the retrieval snapshot next to the prompt, or you'll spend a week blaming the prompt for a retriever change. Then score retrieval and grounding on their own.
Ragas, in its docs, defines Faithfulness this way: it "measures how factually consistent a response is with the retrieved context", and "A response is considered faithful if all its claims can be supported by the retrieved context." Context Recall "measures how many of the relevant documents (or pieces of information) were successfully retrieved."
On our stack: Ragas covers grounding and retrieval metrics inside the AI quality checks.
Pass rule: every metric above threshold, no drop against baseline.
6. Attack it before users do with Promptfoo
An AI feature takes instructions from text, and some of that text will be hostile. Test prompt injection through user input and through your own data, jailbreaks, system-prompt leakage, cross-customer data access, PII extraction and harmful content.
Promptfoo, in its docs: "promptfoo is an open-source CLI and library for evaluating and red-teaming LLM apps." And: "LLM red teaming is a way to find vulnerabilities in AI systems before they're deployed by using simulated adversarial inputs."
Our step-by-step prompt injection testing framework goes deeper on building the attack set.
On our stack: Promptfoo runs the red team scans and Garak the vulnerability probes, with red-team coverage mapped to the OWASP Top 10 for LLM applications.
Pass rule: zero criticals, attack success under an agreed ceiling.
7. Measure speed and cost per conversation
A correct answer that arrives too slowly, or costs too much per conversation, is still a failed release. Track latency p50 and p95, time to first token, tokens and cost per conversation, and behaviour under concurrent load and provider rate limits.
On our stack: tracing and load tests, measured on every eval run.
Pass rule: under your stated budget.
8. Wire the gates into CI: every pull request, every night
A check that runs only when someone remembers is not a gate. Split the suite by speed and cost.
- Every pull request: functional suite and deterministic checks. Model calls replayed from recordings. Fast and free.
- Every night: full evals on the live model, every dataset, compared against the stored baseline.
DeepEval's docs describe the CI side: "Integrate LLM evaluations into your CI/CD pipeline with deepeval to catch regressions before they ship." It plugs into Pytest, so deepeval test run collects and runs your eval files the same way pytest would.
On our stack: DeepEval runs the evals and the CI gates, so you get a regression pipeline in your CI: pull-request gate and nightly evals.
Done when: you have a regression pipeline in your CI: pull-request gate and nightly evals.
9. Keep watching after launch with Langfuse
The release is not the end of testing an AI feature, because the model can change without one. Run nightly evals against a stored baseline and weekly scoring of sampled production traffic, so a silent model update or a prompt tweak shows up as a step in the chart, not a customer complaint.
Langfuse describes itself as "an open-source AI engineering platform", and its docs say you can evaluate live incoming traces to measure quality on production data and track trends over time. Its traces include all LLM and non-LLM calls, including retrieval, embedding, API calls, and more.
On our stack: Langfuse holds the traces, datasets and drift. Every week, a sample of production conversations is scored for grounding, relevance and safety. When the prompt or the model changes, we re-baseline.
Pass rule: two weeks under threshold raise an alert.
How we run this checklist
Our stack is open source, self-hosted where your data is involved. Every tool sits behind an adapter in our framework, so if you already run a different eval or tracing platform, you keep it.
An engagement takes six to eight weeks to a running pipeline:
- Discovery (week 1): we inventory every AI feature, classify it by risk and agree the thresholds.
- Dataset build (weeks 2 to 3): the golden set from your real traffic and your experts, plus perturbation and adversarial sets.
- Baseline scorecard (week 4): every applicable test runs against the current version. You get a number per quality dimension, with failing cases and traces.
- Automation (weeks 5 to 7): functional suite, evals wired into your CI with gates, tracing and the drift job deployed.
- Handover or run: your team takes the pipeline, or we run it: nightly evals, weekly drift report, re-baseline on every prompt or model change.
You keep a pipeline and a scorecard, not a one-off report, with the same report shape every month, so you can compare your AI with itself over time.
Frequently asked questions
What should you test before shipping an AI feature?
Nine things: the risk tier and thresholds of each AI feature, the app around the model, a golden set of real questions, answer quality, grounding, attacks such as prompt injection, speed and cost, CI gates on every pull request and every night, and drift after launch.
Which tools do you need to test an LLM feature?
Our stack uses DeepEval as the eval runner and CI gates, Ragas for grounding and retrieval metrics, Promptfoo for red team scans and Langfuse for traces, datasets and drift, with Playwright for the UI and API flows around the model. All of them are open source.
Can DeepEval or Promptfoo replace end-to-end tests?
No. Evals score the model's answers; they do not prove that login, the chat or exports work. Traditional regression tests remain necessary for the application surrounding the model.
How long does it take to set this up?
From a single LLM feature to a tool-calling agent: a baseline scorecard in four weeks, a regression pipeline in eight.
AskYourQA tests AI products on five pillars: the app around the AI, AI security, AI quality, performance, and monitoring, so LLMs and agents behave reliably, consistently, and safely. See how we test AI features, or book a free 20-minute call where we map your critical flows and show how fast the framework can be up.