Back to Blog
Testing guide

What Is Sanity Testing? Complete Guide & Best Practices

Learn when and how to use sanity testing in software QA. Covers process, tools, best practices, and how it differs from smoke testing.

Armish Shah
May 15, 2026
September 4, 2026
 What Is Sanity Testing? Complete Guide & Best Practices

Testing guide

What Is Sanity Testing? Complete Guide & Best Practices

by:

Armish Shah

September 4, 2026

8

min

Share:

What Is Sanity Testing? Complete Guide & Best Practices | TestFiesta
On this page

Ready to take your testing to
the next level?

Sleek and intuitive workflows
Transparent pricing
Easy migration

Introduction

You make a quick code fix and need to confirm the change didn't break anything critical without running your entire test suite. That's sanity testing. You've probably done it without calling it that.

Sanity testing sits at a specific checkpoint in the testing lifecycle: after a build has been received and before deeper testing begins. It answers one focused question (does this build make enough sense to test further?) and it answers it fast.

This guide covers everything you need to know: what sanity testing is, how it works, how it differs from smoke testing, when to use it, what tools support it, and the best practices that make it genuinely effective.

What Is Sanity Testing?

Sanity testing verifies that a specific functionality or bug fix works as expected after a minor change has been made to a build. It's a narrow, focused check, not a comprehensive test run. The goal is to confirm that the area of the application that was changed behaves rationally before the team invests time in broader testing.

Unlike a full regression suite, sanity testing examines only the relevant component or feature that was modified. This makes it fast to execute and easy to repeat. It acts as a filter: if the build fails a sanity check, it goes straight back to development, saving the team from running a full test cycle against a fundamentally broken build.

Purpose of Sanity Testing

Sanity testing saves time. Before a QA team commits to a full round of regression or functional testing, sanity testing confirms that the build is rational and stable enough to warrant that investment. It catches obvious, critical failures early (the kind that would make deeper testing pointless) and sends unstable builds back to development before any further resources are spent.

A QA engineer verifies that a login bug fix actually resolves the login issue before running the full authentication test suite. Or confirms that a pricing calculation update returns the correct output before testing the entire checkout flow. In both cases, the sanity test answers one question: Does this specific change work well enough to keep testing? If no, the build goes back. If yes, the broader test cycle begins.

Types of Sanity Testing

Sanity testing can be carried out either manually or through automation. Depending on the team's workflow, the nature of the change, and the tools available, many teams use both approaches in combination.

Automated Sanity Testing

Automated sanity testing uses scripts or testing frameworks to run predefined checks against a build without human intervention. This approach works well in continuous integration environments where builds are deployed frequently, and speed is critical. A sanity test script can run automatically the moment a new build is triggered, flagging failures before a QA engineer even opens the application.

Sanity testing tools like Selenium, Cypress, and TestNG are commonly used to automate these checks, particularly for web-based applications where UI behavior needs to be validated quickly. The main advantage is consistency: an automated sanity test runs the same checks the same way every time, removing the variability that comes with manual execution.

Manual Sanity Testing

Manual sanity testing involves a QA engineer directly interacting with the application to verify that the changed functionality behaves as expected. It's typically unscripted, relying on the tester's knowledge of the system and the specific change that was made rather than a formal test case document.

This approach is particularly effective for exploratory checks, where the tester is not just confirming expected behavior but also observing whether anything in the surrounding area looks or feels off. Manual sanity testing is fast to initiate since it requires no script setup, making it a practical choice for smaller teams or one-off fixes where writing an automated check would take longer than running the test by hand.

Features and Attributes of Sanity Testing

Sanity testing has a distinct set of characteristics that separate it from other testing types. Understanding these features helps QA teams apply them correctly and avoid the common mistake of either over-scoping it into a full regression run or under-scoping it to the point where it misses the issues it's designed to catch.

Narrow and Deep Focus

Unlike broad testing approaches that cover the entire application, sanity testing zeroes in on the specific component, feature, or bug fix that was changed. The scope is deliberately narrow, but within that scope, the testing goes deep. A QA engineer running a sanity test examines the affected area closely enough to confirm that the change behaves exactly as intended before anything else is tested.

Subset of Regression Testing

Sanity testing is a focused subset of regression testing. Where regression testing validates the entire application to ensure that new changes have not broken existing functionality, sanity testing restricts that check to the specific area that was modified. It's regression testing with a tight boundary, applied quickly and purposefully rather than comprehensively.

Unscripted and Undocumented

One of the defining characteristics of sanity testing is that it's typically carried out without formal test scripts or documentation. QA engineers rely on their understanding of the system and the change at hand to determine what to check and how. This makes sanity testing fast and flexible, but its effectiveness depends heavily on the tester's familiarity with the application.

Simple But Comprehensive

Sanity testing is simple in execution. It doesn't require elaborate setup, complex environments, or lengthy test plans. But within its defined scope, it's thorough. Every relevant aspect of the changed functionality is checked to confirm it works rationally. The simplicity is in the approach; the comprehensiveness is in the coverage of that specific, targeted area.

Benefits of Sanity Testing

When applied correctly, sanity testing delivers outsized value relative to the time it takes. Because it sits at a critical checkpoint (after a change is made but before full testing begins), its benefits ripple across the entire QA process.

Rapid Problem Detection

Sanity testing surfaces critical failures immediately after a build is received, before any deeper testing begins. Because the check is focused and fast, problems are identified at the earliest possible point in the cycle, when they're cheapest and easiest to fix.

Time and Cost Efficiency

By confirming a build is stable before committing to a full test run, sanity testing prevents teams from spending hours on regression testing against a broken build. The time saved compounds across every sprint. Fewer wasted test cycles means more time spent on testing that actually moves the release forward.

Focused Verification

Sanity testing keeps the team's attention exactly where it needs to be: on the specific change that was made. This focused verification ensures that the most critical area of the build is confirmed to be working before broader testing distributes attention across the entire application.

Quick Feedback Loop

One of the most practical benefits of QA sanity testing is how fast it returns results. Developers receive feedback on their changes within minutes rather than hours, allowing them to address issues while the context is still fresh. This tight feedback loop reduces the back-and-forth that slows down release cycles.

Improved Productivity

When teams know that every incoming build has passed a sanity check, QA engineers can move into deeper testing with confidence rather than spending the first part of every cycle discovering whether the build is fundamentally usable. That clarity removes friction and keeps the team productive.

Risk Mitigation

Sanity testing acts as an early risk filter. By catching build-breaking issues before they reach the broader test suite, it reduces the likelihood of critical defects making it through to later stages, where they're significantly more expensive and disruptive to resolve.

Supports Agile Practices

In agile environments where builds are frequent and release cycles are short, sanity testing fits naturally into the workflow. It's fast enough to run within a sprint without disrupting the cadence, and disciplined enough to provide a meaningful quality gate between development and testing, making it one of the most agile-compatible testing practices available.

Sanity Testing Process

Sanity testing may be fast and unscripted, but it's not random. There's a clear process behind it, one that ensures the right things get checked in the right order. Following a consistent process is what separates a disciplined sanity check from an informal glance at the application.

Identification

The process begins with identifying exactly what changed. The QA engineer reviews the build notes, bug report, or change log to understand which component, feature, or fix is being delivered. This step determines the scope of the sanity test: what will be checked, what will be deliberately excluded, and what surrounding functionality might be indirectly affected by the change.

Getting the identification step right is critical because everything that follows depends on it. A poorly scoped sanity test either misses the issue it was meant to catch or wastes time checking things that are irrelevant to the change.

Evaluation

Once the scope is clear, the QA engineer evaluates the change against the expected outcome. This means understanding what the correct behavior should look like: what the fix was supposed to address, what the feature was supposed to do, or what the modified component was supposed to return. At this stage, the tester is building a mental model of what a passing sanity check looks like before touching the application. This evaluation step is what makes sanity testing informed rather than exploratory. The tester knows what they're looking for before they start looking.

Testing

With the scope identified and the expected outcome defined, the QA engineer executes the sanity check directly against the build. They interact with the specific area of the application that was changed, observe whether it behaves as expected, and note any deviation from the anticipated outcome.

If the build passes, the changed functionality behaves rationally and as intended, and testing proceeds to the next phase. If it fails, the build is rejected and returned to development with clear, specific feedback about exactly what didn't behave as expected. The entire execution step is typically completed in minutes, which is precisely what makes sanity testing such an efficient quality gate.

Main Challenges of Sanity Testing

Sanity testing is lightweight by design, and that's both its strength and its limitation. The same characteristics that make it fast and focused also introduce challenges that QA teams need to be aware of. Understanding these challenges helps teams apply them more intelligently and avoid over-relying on them as a quality signal.

Limited Scope

Because sanity testing only examines the specific area that was changed, it won't catch issues that exist outside that boundary. A build can pass a sanity check cleanly while containing defects in untested areas that will only surface during full regression testing. This isn't a flaw in the approach; it's an intentional trade-off. But it means sanity testing should never be treated as a substitute for broader testing. Teams that mistake a passed sanity check for a clean bill of health risk letting undetected issues advance further into the release cycle than they should.

Time Constraint

Sanity testing is expected to be fast, and that expectation can create pressure that works against thoroughness. When release timelines are tight, there's a temptation to rush the sanity check, to skim the changed area rather than examine it carefully, or to skip the identification step and jump straight to execution. The result is a sanity test that's fast on paper but unreliable in practice. The challenge is maintaining the discipline to be both quick and careful, which requires experience and a clear understanding of what the specific change actually touches.

Limited Test Environment

Sanity testing is typically performed in a test or staging environment that may not perfectly replicate production conditions. Configuration differences, missing data, or environment-specific dependencies can cause a build to behave differently in sanity testing than it will in production. A build that passes the sanity check can still fail once deployed. This is a challenge that affects most testing types to some degree, but it's particularly relevant for sanity testing because the check is so narrow. If the environment doesn't accurately reflect the conditions under which the changed functionality will run in production, the sanity test's verdict is only as reliable as the environment in which it was run.

Sanity Testing Best Practices

Sanity testing is simple in principle, but easy to do poorly in practice. Without a consistent approach, it can drift into either a superficial glance that misses real issues or an over-scoped exercise that defeats the purpose of keeping it fast. These best practices keep sanity testing effective, repeatable, and genuinely useful as a quality gate.

Keep Test Cases Concise

When sanity testing is scripted, test cases should be short, targeted, and directly tied to the change being validated. A sanity test case that sprawls into multiple scenarios and edge cases has crossed the line into regression testing territory. Each test case should address one specific behavior in the changed area and nothing more. Concise test cases are faster to execute, easier to interpret when they fail, and simpler to maintain as the application evolves.

Prioritize Key Features

Not all functionality carries the same risk. When determining what to include in a sanity check, QA engineers should prioritize the features and workflows most likely to be affected by the change and the ones whose failure would have the highest impact on the application or the end user. If a pricing calculation was modified, validate the calculation before checking anything else. If an authentication flow was updated, confirm login works before moving on. Prioritization ensures that the most critical checks happen first, even if time runs short.

Utilize Automation Tools

For teams with frequently recurring sanity checks, particularly in CI/CD environments where builds are deployed multiple times a day, sanity testing software and automation tools significantly reduce the manual effort involved. Sanity testing tools like Selenium, Cypress, and TestNG can be configured to run targeted checks automatically on every new build, returning results in minutes without requiring a QA engineer to manually execute the same checks repeatedly. Automation also removes the inconsistency that comes with manual execution, ensuring the same checks are applied the same way every time.

Update Test Cases Regularly

Applications change, and sanity test cases need to change with them. A test case written for a feature three releases ago may no longer reflect how that feature behaves or what constitutes a passing check. QA teams should review and update their sanity testing software scripts and test cases whenever a significant change is made to the application, not just when a test starts failing. Regular updates ensure that the sanity check remains an accurate reflection of what the application is supposed to do, rather than a historical artifact that passes regardless of the current state of the build.

Sanity Testing vs. Smoke Testing

Smoke testing and sanity testing are two of the most frequently confused concepts in QA. Both are lightweight, both happen early in the testing cycle, and both act as gatekeepers before deeper testing begins. The difference is in what they're checking and why.

Smoke testing asks: Is this build stable enough to test at all? It runs a broad set of high-level checks across the entire application to confirm that the core functionality is working (login, navigation, and critical workflows). It doesn't go deep into any specific area.

Sanity testing asks: Does this specific change work as intended? It runs a narrow, focused check on the exact component or feature that was modified. It doesn't cover the whole application; it covers one part of it in depth.

The easiest distinction: smoke testing is wide and shallow, sanity testing is narrow and deep. Smoke testing typically happens first. If the build passes smoke, sanity testing follows for the specific change being validated.

Comparison Table

Dimension
Sanity Testing
Smoke Testing
Purpose
Verify a specific change or bug fix works as expected
Verify the build is stable enough for further testing
Scope
Narrow (focused on the changed component only)
Broad (covers critical functionality across the whole application)
Depth
Deep within its defined scope
Shallow across a wide surface area
When it runs
After a minor change or bug fix is delivered
After a new build is received
Who performs it
QA engineers
QA engineers or developers
Scripted or unscripted
Typically unscripted
Can be scripted or unscripted
Documentation
Minimal, usually undocumented
Often documented with a defined checklist
Speed
Fast
Fast
Goal if it fails
Return the build for the specific fix to be corrected
Reject the entire build as untestable
Relationship to regression
Subset of regression testing
Precursor to regression testing
Example
Verifying a fixed login bug no longer returns an error
Confirming login, dashboard, and checkout all load correctly
Used in Agile?
Yes, fits naturally into sprint workflows
Yes, commonly run after every build deployment

‍

The two are complementary rather than competing. In a well-structured QA workflow, smoke and sanity testing work together: smoke testing clears the build for general testing, and sanity testing clears the specific change for focused validation. Running both at the right moment is what makes the early stages of a test cycle efficient and reliable.

Sanity Testing With TestFiesta

Sanity testing is only as effective as the system supporting it. When test cases are scattered across spreadsheets, results are logged inconsistently, and there's no clear traceability between a build change and the checks run against it, the sanity testing process loses the speed and reliability it's supposed to provide. TestFiesta brings structure to sanity testing without adding overhead, keeping it fast, focused, and fully traceable.

Organized test case management. Teams can build a lightweight library of targeted sanity test cases directly in TestFiesta, organized by component or feature area. No separate spreadsheets, no unscripted guesswork. The right checks are ready to run the moment a new build arrives.

Clear traceability. TestFiesta maintains a clear link between test cases, test runs, and results. Every sanity check is documented: what was tested, against which build, and what the outcome was. When a build is rejected, that decision is visible to the whole team, not buried in a chat message.

Native defect logging. When a sanity test fails, QA engineers log the defect directly inside TestFiesta, automatically linked to the test case and run where it came from. No context switching, no re-entering details into a separate tool, no lost traceability.

Fast execution and reporting. Initiating a sanity test run, executing the relevant cases, and reviewing results takes minutes. TestFiesta's reporting dashboard gives the team an immediate view of whether the build has passed or failed, making the go/no-go decision clear and data-backed.

Conclusion

Sanity testing is a small investment that prevents a much larger one. By confirming that a specific change works as intended before committing to a full test cycle, it keeps the feedback loop between development and QA tight and stops unstable builds from consuming testing resources they haven't earned yet.

What makes sanity testing valuable isn't its complexity. It's its discipline. Whether automated or manual, scripted or unscripted, the practice only delivers on its promise when it's applied consistently and at the right moment in the testing cycle. A sanity check that gets skipped under schedule pressure is precisely the scenario where it would have caught something.

Used alongside smoke testing, supported by the right tooling, and backed by documented results, sanity testing becomes one of the most efficient quality gates in a QA team's workflow: fast enough to fit into any sprint, focused enough to be genuinely meaningful, and simple enough that there's no good reason not to do it.

FAQs

What metrics should we track to measure sanity testing effectiveness?

Track the rejection rate (percentage of builds that fail sanity checks), average time to execute a sanity check, and time saved by catching issues before full regression runs. Also measure the false pass rate: builds that passed sanity but failed later in regression, which indicates your sanity scope needs adjustment. Teams typically aim for a 10-15% rejection rate (high enough to prove value, low enough to indicate development is generally delivering stable builds). Learn more about essential software testing metrics.

How do we get buy-in for formalizing sanity testing when teams say "we already do this informally"?

Quantify what informal sanity testing costs. Track how many times in the last quarter your team ran full regression suites against builds with broken changes that should have been caught earlier. Calculate the hours lost. Present the case as time reclaimed, not process added. Start with one high-frequency workflow (authentication, checkout, search) and demonstrate the time savings within two sprints. Buy-in follows results, not proposals.

How should sanity testing adapt in continuous delivery environments with 20+ deployments per day?

Automate the recurring checks completely and reserve manual sanity testing for genuinely novel changes or high-risk areas. In high-frequency deployment environments, your sanity suite should run in under 5 minutes and be triggered automatically on every build. Use deployment metadata to determine which subset of sanity checks to run based on what changed (API sanity checks for backend changes, UI sanity checks for frontend changes). The goal is zero human involvement for routine sanity validation.

What's the minimum viable sanity testing process for a three-person QA team with limited tooling?

Start with a one-page checklist organized by application area (authentication, core workflows, data integrity). When a build arrives with a change, the engineer checks only the relevant section, validates the change works, logs pass/fail in a shared document with the build number and timestamp, and escalates failures immediately. No tooling required beyond a shared spreadsheet. Formalize gradually: add common checks as they repeat, automate the highest-frequency ones first, and migrate to a proper test management tool only when the manual process proves its value and becomes the bottleneck.

Tool

Pricing

TestFiesta

Free user accounts available; $10 per active user per month for teams

TestRail

Professional: $40 per seat per month

Enterprise: $76 per seat per month (billed annually)

Xray

Free trial; Standard: $10 per month for the first 10 users (price increases after 10 users)

Advanced: $12 per month for the first 10 users (price increases after 10 users)

Zephyr

Free trial; Standard: ~$10 per month for first 10 users (price increases after 10 users)

Advanced: ~$15 per month for the first 10 users (price increases after 10 users)

qTest

14‑day free trial; pricing requires demo & quote (no transparent pricing)

Qase

Free: $0/user/month (up to 3 users)

Startup: $24/user/month

Business: $30/user/month

Enterprise: custom pricing

TestMo

Team: $99/month for 10 users

Business: $329/month for 25 users

Enterprise: $549/month for 25 users

BrowserStack Test Management

Free plan available

Team: $149/month for 5 users

Team Pro: $249/month for 5 users

Team Ultimate: Contact sales

TestFLO

Annual subscription (specific amounts per user band), e.g., Up to 50 users: $1,186/yr; Up to 100 users: $2,767/yr; etc.

QA Touch

Free: $0 (very limited)

Startup: $5/user/month

Professional: $7/user/month

TestMonitor

Starter: $13/user/month

Professional: $20/user/month

Custom: custom pricing

Azure Test Plans

Pricing tied to Azure DevOps services (no specific rate given)

QMetry

14‑day free trial; custom quote pricing

PractiTest

Team: $54/user/month (minimum 5 users)

Corporate: custom pricing

Black Box Testing

White Box Testing

Coding Knowledge

No code knowledge needed

Requires understanding of code and internal structure

Focus

QA testers, end users, domain experts

Developers, technical testers

Performed By

High-level and strategic, outlining approach and objectives.

Detailed and specific, providing step-by-step instructions for execution.

Coverage

Functional coverage based on requirements

Code coverage

Defects type found

Functional issues, usability problems, interface defects

Logic errors, code inefficiencies, security vulnerabilities

Limitations

Cannot test internal logic or code paths

Time-consuming, requires technical expertise

Aspect

Test Plan

Test Case

Purpose

Defines the overall testing strategy, scope, and approach for a project or release.

Validates that a specific feature or functionality works as expected.

Scope

Covers the entire testing effort, including what will be tested, resources, timelines, and risks.

Focuses on a single scenario or functionality in the broader scope.

Level of Detail

High-level and strategic, outlining approach and objectives.

Detailed and specific, providing step-by-step instructions for execution.

Audience

Project managers, stakeholders, QA leads, and development teams.

QA testers and engineers.

When It's Created

Early in the project, before testing begins.

After the test plan is defined and the requirements are clear.

Content

Scope, objectives, strategy, resources, schedule, environment details, and risk management.

Test case ID, title, preconditions, test steps, expected results, and test data.

Frequency of Updates

Updated periodically as project scope or strategy changes.

Updated frequently as features change or bugs are fixed.

Outcome

Provides direction and clarifies what to test and how to approach it.

Produces pass or fail results that indicate whether specific functionality works correctly.

Tool

Key Highlights

Automation Support

Team Size

Pricing

Ideal For

TestFiesta

Flexible workflows, tags, custom fields, and AI copilot

Yes (integrations + API)

Small → Large

Free solo; $10/active user/mo

Flexible QA teams, budget‑friendly

TestRail

Structured test plans, strong analytics

Yes (wide integrations)

Mid → Large

~$40–$74/user/mo)

Medium/large QA teams

Xray

Jira‑native, manual/
automated/
BDD

Yes (CI/CD + Jira)

Small → Large

Starts ~$10/mo for 10 Jira users

Jira‑centric QA teams

Zephyr

Jira test execution & tracking

Yes

Small → Large

~$10/user/mo (Squad)

Agile Jira teams

qTest

Enterprise analytics, traceability

Yes (40+ integrations)

Mid → Large

Custom pricing

Large/distributed QA

Qase

Clean UI, automation integrations

Yes

Small → Mid

Free up to 3 users; ~$24/user/mo

Small–mid QA teams

TestMo

Unified manual + automated tests

Yes

Small → Mid

~$99/mo for 10 users

Agile cross‑functional QA

BrowserStack Test Management

AI test generation + reporting

Yes

Small → Enterprise

Free tier; starts ~$149/mo/5 users

Teams with automation + real device testing

TestFLO

Jira add‑on test planning

Yes (via Jira)

Mid → Large

Annual subscription starts at $1,100

Jira & enterprise teams

QA Touch

Built‑in bug tracking

Yes

Small → Mid

~$5–$7/user/mo

Budget-conscious teams

TestMonitor

Simple test/run management

Yes

Small → Mid

~$13–$20/user/mo

Basic QA teams

Azure Test Plans

Manual & exploratory testing

Yes (Azure DevOps)

Mid → Large

Depends on the Azure DevOps plan

Microsoft ecosystem teams

QMetry

Advanced traceability & compliance

Yes

Mid → Large

Not transparent (quote)

Large regulated QA

PractiTest

End‑to‑end traceability + dashboards

Yes

Mid → Large

~$54+/user/mo

Visibility & control focused QA

Related Articles

Introduction

Accessibility testing checks whether people with disabilities can use your website or app without barriers. This includes users who are blind or low-vision, deaf or hard of hearing, keyboard-only navigators, and those with cognitive or learning disabilities.

While most teams value accessibility, many struggle to define what to test, select the right tools, or maintain checks in their release workflow. This guide covers the essential standards of accessibility testing, a three-layer testing methodology, key web and mobile differences, top tools, and answers to common team questions.

What Is Accessibility Testing

Accessibility testing is the process of checking that a digital product works for everyone, including people who rely on assistive technology or use their devices in different ways. It asks simple questions, such as:

  • Can someone reach every button using only a keyboard? 
  • Does a screen reader announce what an image shows? 
  • Is the text readable against its background? 
  • Can someone who can’t hear follow a video?

Accessibility testing is continuous, and it works best when it runs alongside the rest of your QA process.

Why Accessibility Testing Matters

There are three good reasons to take accessibility testing seriously:

  • More people can use your product: Disabilities are common, and many more people deal with temporary or situational limits, like a broken arm, bright sunlight on a screen, or a noisy room.
  • Legal risk goes down: Many countries have laws that require digital products to be accessible, and most of them point to the same set of guidelines.
  • Quality goes up: Clear labels, logical structure, and good contrast make a product easier for everyone, not just users with disabilities.

What Are Web Content Accessibility Guidelines (WCAG)?

The Web Content Accessibility Guidelines, or WCAG, are the global standard for digital accessibility. They’re published by the World Wide Web Consortium (W3C), and most accessibility laws and audits measure products against them. 

WCAG is built on four principles, often shortened to POUR:

  • Perceivable: Users can see or hear the content. Images have text alternatives, videos have captions, and text has enough contrast.
  • Operable: Users can use every control, whether they navigate with a mouse, keyboard, or voice.
  • Understandable: Content and behavior are clear and predictable. Forms explain errors, and navigation stays consistent.
  • Robust: Content works with a wide range of browsers and assistive technologies.

Under these principles sit testable rules called success criteria. Each one has a conformance level:

Level A (Minimum Compliance): Establishes the essential baseline for web accessibility. It addresses fundamental barriers that would otherwise prevent users with disabilities from accessing or interacting with content entirely (e.g., providing alt text for images, basic keyboard navigation, and avoiding content that causes seizures).

Level AA (Standard Compliance): Serves as the widely accepted global benchmark for web accessibility and legal compliance. It removes significant barriers for a broader population of users with diverse visual, hearing, cognitive, and motor impairments (e.g., ensuring adequate text contrast, visible focus states, consistent navigation, and clear error handling).

Level AAA (Enhanced Compliance): Represents the highest and most stringent level of accessibility. It incorporates specialized criteria designed to optimize usability for users with specific or severe disabilities (e.g., providing sign language interpretation for audio, extended color contrast ratios, and simplified reading levels). Note that full Level AAA compliance across an entire site is generally not required or feasible for all content types.

The Accessibility Testing Tools Worth Knowing

Instead of using dozens of accessibility tools and cluttering your QA process, focus on a core set that covers each layer of testing. Most QA teams rely on the following essentials.

axe DevTools: Scans pages for WCAG issues and explains how to fix each one.

WAVE: Places icons directly on the page to show errors, alerts, and structure. 

Google Lighthouse: Gives each page an accessibility score and a list of issues. 

Pa11y: Command-line tool that runs accessibility checks on any URL. 

Accessibility Scanner (Android): A free app that scans any screen on an Android device and suggests fixes for issues.

Xcode Accessibility Inspector (iOS): A tool that comes with Xcode and lets you inspect the accessibility details of each element in an iOS app.

Learn more about accessibility testing tools.

TestFiesta Keeps Your Accessibility Testing From Falling Through the Cracks

Accessibility testing often fails due to fragmented workflows: automated scans stay in CI/CD, manual logs remain in personal notes, and screen reader findings get lost in chat. TestFiesta unifies all three testing layers into a single platform.

  • Reusable Test Cases: Convert keyboard, zoom, and screen reader checks into standardized test cases with reusable steps for repeated actions.
  • Test Execution and Tracking: Schedule accessibility passes per release to monitor pass/fail status and test coverage in real time.
  • Defect Management: File accessibility defects directly from test runs and sync them to Jira or GitHub with full contextual details.
  • AI Test Case Generation: Automatically generate accessibility test cases from requirements, user stories, or UI screenshots.
  • CI/CD Integration: Import automated test results via the TacoTruck CLI alongside manual testing reports.

Accessibility shouldn’t be an afterthought or a chaotic scramble before release. Take control of your accessibility testing with TestFiesta.

Start a free trial today

FAQs

How is accessibility testing different from usability testing?

Usability testing checks whether a product is easy and pleasant to use for a general group of users. Accessibility testing checks whether people with disabilities can use it at all, often against WCAG criteria. 

Is accessibility testing different from user acceptance testing?

Yes, User acceptance testing (UAT) confirms that a product meets business requirements before release, usually with end users or stakeholders. Accessibility testing focuses on whether people with disabilities can use the product. 

Which WCAG level should my team be targeting, A, AA, or AAA?

Most teams should target WCAG 2.2 Level AA. It’s the level most laws and contracts ask for, and it covers the barriers users hit most often. 

Can I pass an accessibility audit using only automated tools?

No, automated tools only catch part of the WCAG criteria, and they can’t judge things like whether alt text makes sense or whether a screen reader user can complete a task. Auditors test manually and with assistive technology, so you should too.

Testing guide
Best practices

Introduction

Large language models are now a part of core enterprise infrastructure, which is why it’s critical to ensure they are safe, accurate, and high-performing at scale. 

Traditional software testing methods fall short in this landscape. As a result, QA teams are required to adopt entirely new frameworks, metrics, and red-teaming strategies to build truly production-ready AI applications.

What Is LLM Testing

LLM testing is the process of evaluating a large language model or LLM-powered application against defined expectations for quality, safety, performance, and security. In practice, most QA teams are not testing a foundation model from scratch. They are testing what sits on top of it, such as prompts, retrieval pipelines, tool calls, guardrails, and business logic that turn a general model into a product. That distinction shapes the work. 

A chatbot that answers billing questions needs to pull the right account policy, stay on topic, refuse requests it should not fulfill, and respond fast enough that customers don’t give up on it. In this case, each function a chatbot performs is a testable behavior.

LLM testing usually combines three kinds of checks:

  1. Deterministic assertions for anything with a clear right answer, such as valid JSON, required fields, or a banned phrase never appearing.
  2. Model-graded evaluation, where a second model scores outputs against a rubric. This is often called LLM-as-a-judge.
  3. Human review for judgment calls that automated scoring still gets wrong.

The result of LLM testing is a measured picture of how often the system behaves as intended, and whether it improves or degrades with each change.

The 4 Main Types of LLM Testing

Most LLM test plans fall into four categories, each targeting a different risk. A production-ready application needs coverage in all four. 

1. Functional Testing

Functional testing checks whether the application does its job, like answering correctly, following instructions, and producing output in the expected format.

Typical test cases cover:

  • Task accuracy: Does the summary capture the key points? Does the extraction pull the right fields?
  • Instruction following: Does the model respect length limits, tone requirements, and output schemas?
  • Retrieval quality: In RAG systems, did the pipeline fetch the right documents, and did the answer actually use them?
  • Multi-turn behavior: Does the assistant keep track of context from earlier in the conversation?
  • Tool and agent behavior: Did the agent call the right tool, with valid arguments, in a sensible order?

Build functional tests from real user scenarios rather than generic prompts. A test set drawn from actual support tickets or product requirements catches far more than one built from templated questions. Every bug a user reports should also become a permanent regression case.

2. Performance and Reliability Testing

Performance testing measures how fast and how consistently the application responds under realistic load. LLM latency behaves differently from typical API latency because responses stream token by token and output length varies with every request.

Key areas to cover:

  • Latency: Time to first token, total response time, and tokens per second.
  • Load behavior: How latency and error rates change as concurrent users grow, and where provider rate limits kick in.
  • Consistency: Whether the same prompt produces stable quality across repeated runs.
  • Failure handling: Timeouts, provider outages, truncated responses, malformed output, and whether retries and fallbacks work.
  • Cost: Token usage per request, since a prompt change that doubles output length also doubles spend.

Reliability is where non-determinism hurts most. Run each critical test case several times and track the spread, not just the average. A feature that answers correctly 9 times out of 10 still fails visibly for a share of real users.

3. Safety and Content Testing

Safety testing checks whether the application produces harmful, biased, or off-policy output, including when users are not trying to break it.

Coverage usually includes:

  • Toxicity and harmful content: Hate speech, harassment, and violent or sexual content.
  • Bias: Whether answers or tone shift based on names, genders, or other demographic cues in the prompt.
  • Policy compliance: Staying within brand guidelines and avoiding medical, legal, or financial advice where the product shouldn't give it.
  • Refusal calibration: Refusing what it should without over-refusing legitimate requests.
  • Privacy: Not repeating personal data from context or logs in its responses.

Over-refusal deserves its own test cases. A model that declines half of valid customer questions passes every safety check and still fails the product. Track refusal rate and harmful output rate together.

4. LLM Penetration Testing

LLM penetration testing attacks the application the way a malicious user would. Safety testing asks whether the model says something harmful, whereas penetration testing asks whether an attacker can make the system do something it was never meant to do.

Common attack categories to test:

  • Direct prompt injection: Inputs that try to override system instructions, such as “ignore previous instructions and…”
  • Indirect prompt injection: Malicious instructions hidden in content the model reads, like a web page, uploaded file, or document in a RAG index.
  • System prompt leakage: Attempts to extract hidden instructions, internal rules, or credentials placed in prompts.
  • Sensitive data disclosure: Getting the model to reveal other users’ data or internal documents from its context.
  • Excessive agency: Tricking an agent into calling tools, sending messages, or changing data beyond what the user is authorized to do.
  • Insecure output handling: Model output passed unchecked into a browser, database query, or shell.
  • Resource abuse: Prompts designed to max out tokens, loop agents, or run up costs.

When a model can take actions, a successful injection can send emails, modify records, or expose data. Pair automated attack generation with manual testing, and retest after every prompt or tool change.

LLM Testing Frameworks and Tools Worth Knowing

No single tool covers every type of LLM testing. Most teams pair an evaluation framework for functional and RAG metrics with a dedicated tool for security scanning. 

1. DeepEval

DeepEval is a Python LLM testing framework (Apache 2.0) integrated with Pytest. It provides metrics for RAG quality, agent behavior, conversation context, toxicity, custom evaluation, and synthetic dataset generation for CI/CD integration.

Best for: Teams that want LLM tests to live alongside their existing Python test suite.

2. Promptfoo

Promptfoo is a CLI tool and library (MIT) for declarative evaluation and red-teaming. It compares prompts and models across providers and generates adversarial tests for prompt injection, jailbreaks, and data exfiltration.

Best for: Prompt and model comparisons, and automated LLM penetration testing.

3. Giskard

Giskard is an open-source Python library (Apache 2.0) that automatically detects hallucinations, prompt injection, and bias. Its RAGET module generates test cases to evaluate retriever and generator performance separately.

Best for: Surfacing vulnerabilities you don’t typically test for, especially in RAG applications.

4. TruLens

TruLens (MIT) pairs OpenTelemetry tracing with model evaluations to measure latency, token usage, cost, and the RAG triad (context relevance, groundedness, and answer relevance).

Best for: Pinpointing where in a multi-step pipeline quality breaks down, and comparing app versions on quality, latency, and cost.

5. Ragas

Ragas (Apache 2.0) evaluates retrieval-augmented generation systems through faithfulness, answer relevancy, context precision, and recall metrics, alongside synthetic test dataset generation.

Best for: RAG evaluation and teams that need to build a test set from scratch.

Key LLM Testing Metrics

LLM testing differs from usual software testing metrics. Most quality metrics in LLM testing score from 0 to 1, and your team sets the threshold that counts as a pass.

1. Faithfulness

Faithfulness measures whether the claims in an answer are supported by the context the model was given. It is usually calculated by breaking the answer into individual statements and checking each one against the retrieved documents. A low score means the model is adding information its sources don't contain.

2. Answer Relevance

Answer relevance measures how directly a response addresses the question asked. An answer can be accurate and faithful but still miss the point, filling space with related facts instead of answering. This metric catches that.

3. Hallucination Rate

Hallucination rate is the share of outputs that contain fabricated or unsupported information. Faithfulness scores a single response, while hallucination rate is tracked across a full test set, so you can see whether a model or prompt change made the problem better or worse.

4. Toxicity Score

A toxicity score estimates how likely an output is to be offensive, abusive, or harmful, usually using a classifier or judge model. Track the share of responses above your threshold rather than the average score. One toxic reply matters more than a low mean.

5. Groundedness

Groundedness measures how well each statement in a response can be traced back to a provided source. It overlaps heavily with faithfulness, and frameworks define the two terms differently. Check how your tool calculates each before comparing numbers across tools.

6. Latency / TTFT (Time to First Token)

Time to first token is the delay between sending a request and receiving the first token of the response. It drives how fast a streaming interface feels. Track it alongside total response time and tokens per second, and report percentiles such as p95 instead of averages, because slow outliers are what users notice.

7. Pass@k

Pass@k is the probability that at least one of k generated attempts passes a test. It comes from code generation, where a task counts as solved if any of k samples passes its unit tests. For user-facing features, the stricter question is often whether all k attempts pass, since users see one response, not the best of several.

TestFiesta Was Built for the Complexity LLM Testing Brings

LLM testing creates a lot of moving parts, including functional, safety, and security test cases, results from automated eval runs, scores that shift with every prompt or model change, and defects that need a clear trail back to the input that caused them. TestFiesta gives QA teams one place to manage all of it.

  • AI Copilot for Test Design: Upload requirements, user stories, or screenshots, and the Copilot generates structured test cases from that context. Nothing enters your suite until you review and approve it, which matters when you are writing hundreds of prompt scenarios and adversarial cases.
  • Flexible Organization: Reusable templates, universal tagging, and shared steps let you group cases by test type, risk, or feature, so a safety suite or red-team suite can run on its own.
  • Reusable Configurations: Run the same test cases across environments, or treat model and prompt versions as configurations to track results per version.
  • Automated Results in One Place: The TacoTruck CLI and full API access push results from CI/CD runs into TestFiesta, so eval framework output sits next to manual and exploratory testing.
  • Built-In Bug Tracking: Log defects in the same platform where you manage test cases, or turn a failed test into a Jira or GitHub issue with full context attached.

Set up your first LLM test suite in TestFiesta and get a QA workflow that fits your team.

Start your free trial today

FAQs

Can LLM testing be automated?

Yes, LLM testing can be largely automated. Deterministic checks, model-graded metrics, and adversarial attack generation can all run in a CI/CD pipeline on every prompt, model, or code change. That said, automation can’t fully replace human review of judgment-heavy outputs, or periodic checks that judge whether models are scoring accurately. 

What is LLM red teaming?

LLM red teaming is adversarial testing where testers deliberately try to make a model or application misbehave through jailbreaks, prompt injection, data extraction, or harmful content requests. It overlaps with LLM penetration testing but is usually broader, covering safety and misuse as well as security flaws. 

How do I test an LLM when I don’t have a ground truth dataset?

You can still test an LLM if you don’t have a ground truth dataset. Start with reference-free metrics such as faithfulness, answer relevance, and groundedness, which score outputs against the question and retrieved context instead of an expected answer. You can also generate a synthetic test set from your own documents and have domain experts review a sample. Over time, real user queries from production, labeled as you go, become your ground truth dataset.

Testing guide
Best practices

Introduction

How do you verify whether the system output is actually correct when nobody knows what the exact expected answer should be?

In software engineering, this challenge is known as the oracle problem; a bottleneck where traditional unit tests and pass/fail assertions hit a wall. When checking single outputs against fixed expected values is impossible or too expensive, metamorphic testing offers a powerful alternative: instead of checking whether a single output is correct on its own, you check how outputs relate across logical transformations of the input.

What Is Metamorphic Testing

Metamorphic testing is a way to test software without knowing the exact correct output for any single input. Instead of checking one result against an expected value, you run the program more than once with related inputs. Then you check that the outputs relate to each other the way they logically should.

Here is a simple illustration:

Say you are testing a payroll function. You may not know the exact total for a 400-person company with overtime, bonuses, and tax rules. But you do know one thing for sure: If every employee’s hourly rate doubles and nothing else changes, gross payroll should double too. Run both versions, compare, and if the second total isn’t twice the first, you can determine that the output is wrong. As a result, you found a problem without ever knowing the “right” answer.

Metamorphic testing has two main strengths:

  • It eases the oracle problem: You verify relationships between outputs, not the correctness of each output on its own.
  • It generates new tests: Every existing test case can spawn follow-up cases, so coverage grows from tests you already have.

What Is a Metamorphic Relation

A metamorphic relation (MR) is the rule that ties metamorphic test runs together. It states how a specific change to the input should affect the output. If the outputs break the rule, the program has a fault somewhere.

Every MR has two parts. One is the input transformation, which is how you change the original input to create a new one. The other is the output relation, which is what must hold between the original output and the new output.

Imagine you are testing a function that sorts a list of numbers. For a short list, you can check the result by looking at it. But for a list of 100,000 numbers, you need a function. When testing complex functions like sorting a massive list of numbers where you cannot manually verify every expected output, you can still rely on fundamental rules or properties that must always remain true. Each of these inherent properties serves as a Metamorphic Relation (MR) that can be used to catch software bugs without needing to know the exact final answer in advance.

In this specific case, the MRs would be:

MR 1: Shuffling the input should not change the output. If list B contains exactly the same numbers as list A in a different order, then sort(B) must equal sort(A). If they differ, the function is mishandling order somewhere.

MR 2: Adding a larger number should only extend the output. If you append a value bigger than everything in list A, the sorted result should be the original sorted list with that value at the end. Anything else means the new element disturbed items it never should have touched.

Neither rule tells you what the sorted list should look like. But both can still catch real bugs. Mathematical functions work the same way. You may not know sin(x) to fifteen decimal places, but you know sin(x) and sin(π − x) must be equal.

How Metamorphic Testing Works: A Step-by-Step Guide

Metamorphic testing follows the five steps, which remain the same regardless of testing a sort function or a self-driving model. 

To make it simple, we’ll use the e-commerce search example.

Step 1: Identify metamorphic relations: Study what the system is supposed to do and write down properties that must hold across related inputs, like “adding a filter never adds results.” This step takes the most thought and depends on domain knowledge, so pull in the people who understand the system best.

Step 2: Create source test cases. Choose the original inputs the process starts from, such as a set of real search queries. These can be existing test cases, randomly generated inputs, or anonymized production data.

Step 3: Derive follow-up test cases. Apply each MR’s input transformation to every source case, such as by adding a size filter to each query. One source case can feed several MRs, so a small seed set grows quickly.

Step 4: Execute both sets. Run the program on the source inputs and the follow-up inputs, then record every output. Keep each follow-up paired with its source so you always know which results to compare.

Step 5: Verify the relation. Check whether each pair of outputs satisfies the output relation, such as “filtered results are a subset of unfiltered results.” A violation means at least one output is wrong, which signals a bug in the program or a flaw in the MR itself.

A Pro Tip: A passing metamorphic test does not prove the program is correct. A function could break in a way that still satisfies a given relation. That is why teams usually define several MRs per feature, each checking the behavior from a different angle.

Where Metamorphic Testing Matters

Metamorphic testing matters wherever expected outputs are unknown, expensive to compute, or open to interpretation. These five areas are where it shows up most include:

Scientific and mathematical software

  • Simulations and numerical programs that often have no known exact answer to compare against.
  • Mathematical properties like symmetry, scaling, and conservation laws.
  • Published studies have applied it to bioinformatics programs, epidemiological models, and software at NASA.

Machine learning and AI models

  • Models that produce outputs that no one can fully specify in advance, which is the oracle problem in its purest form.
  • Machine learning models where output should remain consistent or stable when minor, non-essential changes are made to the input. In this context, if you slightly darken a photo, an image classifier should still recognize the same object, because a minor change in lighting doesn’t change the underlying subject of the image.
  • Large language models where rephrasing a factual question should not change the factual answer.

Search engines and ranking systems

  • Systems where there is no objective, agreed-upon “correct” result set for most queries.
  • Subset and consistency relations, like the filtering examples.

Compilers and code translation tools

  • Tools where verifying the compiled output for every possible program is out of reach.
  • Translation tools where two programs that behave the same on a given input should still behave the same after compilation.

Web APIs

  • API responses that often depend on live, constantly changing data, so exact expected values are hard to pin down.

How TestFiesta Helps With Test Case Management for Metamorphic Testing

Metamorphic testing multiplies your test cases fast. Five MRs applied to 40 source cases give you 200 follow-up cases, and every one of them needs to stay linked to its source, its relation, and its result. Without structure, that turns into a cluttered dashboard or spreadsheet.

TestFiesta keeps everything around them organized and traceable.

  • Customizable Tags: TestFiesta offers unlimited customizable tags for grouping, filtering, and sorting test cases. Tag each case with its MR and its role as a source or follow-up case. When an MR starts failing, you can filter straight to every related case.
  • Custom Fields: Custom fields capture data at the test case, run, or result level. Use them to record the input transformation, the expected output relation, and the ID of the source case each follow-up came from.
  • Reusable Templates: Build one MR template with fields for the transformation and the relation. Every new MR then gets documented the same way, no matter who on the team writes it.
  • Shared Steps: Source and follow-up cases usually share setup, like loading a dataset or authenticating against an API. Write those steps once and reuse them everywhere, so a change in setup updates every case at once.
  • Configurations: Configurations let you reuse one test case across many setups. Run the same MR against different environments, browsers, or model versions without cloning cases.
  • Jira and GitHub Integrations: When a relation is violated, turn the failed test into a Jira or GitHub issue with full context, or log bugs natively in TestFiesta. Developers see both inputs and both outputs, which is exactly what they need to debug a metamorphic failure.
  • An API for Automated Results: Metamorphic tests are usually automated, and TestFiesta’s Automation API supports custom automations, so results from your test runs can flow into the platform instead of being copied by hand.

Don’t let the complexity of managing metamorphic relations and automated test suites slow down your release cycles.

Start your free trial today

FAQs

Can metamorphic testing be automated?

Yes, metamorphic testing can be automated, and it is well-suited to automation. Once your MRs are defined, generating follow-up inputs, running both sets, and checking the relations can all be scripted. 

What tools do I need for metamorphic testing?

You don’t need a dedicated tool for metamorphic testing. Most teams write MRs as ordinary tests in the framework they already use, such as pytest or JUnit, and property-based testing libraries like Hypothesis can help generate source inputs. A test case management platform keeps your MRs, source cases, follow-ups, and results connected as the suite grows.

Do I need to know the correct output to write metamorphic tests?

No, you don’t need to know the correct output to write metamorphic tests. That’s the entire point of metamorphic testing. You only need to know how outputs should relate to each other when the input changes in a specific way. Writing good relations still takes domain knowledge, but you never need the exact expected value for any single input.

Testing guide

Ready for a Platform that Works

The Way You Do?

Stop fighting your tools. Start shipping with confidence. TestFiesta adapts to your workflow, not the other way around.

Welcome to the fiesta!