r/softwaretesting • • 5d ago

What tools and frameworks are you currently using to test AI-powered applications?

Hey everyone,
I’m currently exploring on establishing a QA path for our AI-powered software, particularly conversational AI and LLM-based applications.

I’m interested in understanding how other QA engineers and teams are approaching AI testing, especially given the non-deterministic nature of AI-generated responses.

I’d love to hear about your experiences with:
Tools and frameworks: What are you currently using for AI testing and evaluation? DeepEval, Promptfoo, Ragas, LangSmith, custom frameworks or something else?
Response validation: How are you testing response accuracy, hallucinations, contextual relevance and consistency?

Looking forward to learning from ya’ll…cheers

4 Upvotes

9 comments sorted by

4

u/CertainDeath777 5d ago

Custom framework with custom agents and custom skills, so the agents knows exactly what he is working with and what he should implement in what way.
Almost everything open source stuff except the AI subscriptions.
I defined the way it works and how it has to look, and use agents to write agents, test the behaviour and iterate on it, until its good.

But we have a big project with complicated flows and UI, so we basically need optimisation. For a simple webapp that might be overkill

1

u/Last-Standard-1864 4d ago

On my end its actually both web and mobile app. I envision it getting complex with time. So i would like a cleaner foundation at the start to prevent “vendor lock in” so early

1

u/lil_daku 5d ago

Also pls tell how to switch from manual testing to automation/AI testing. What should I learn first. With MCP or agents do I need to learn programming language. What should be the road map for be relevant in AI era

1

u/devi6655 4d ago

For conversational AI / LLM apps, a setup that works well:

DeepEval: Python + PyTest style, good for checking answer relevance, faithfulness and hallucination. Easy for QA folks who already know PyTest. Ragas: if your app uses RAG (answers from your own documents), this is useful for checking whether answers actually come from the retrieved content. Promptfoo: nice for comparing prompts or model versions side by side and running regression checks when someone changes a prompt. Playwright: for end-to-end testing the actual chat UI (typing messages, waiting for streamed replies, checking what's displayed). LLM-as-a-judge: using a second model to score answers against your rules. Useful, but spot-check its scores manually at first, because judges can be wrong too.

A few non-tool tips that helped more than any framework:

Build a golden dataset of 50–100 real user questions with "acceptance rules" instead of exact expected answers (e.g. "must mention X", "must not promise Y"). Run each important question several times, since outputs vary. Keep a separate set of adversarial prompts (prompt injection, asking for other users' data, off-topic requests). Re-run everything whenever the model, prompt or knowledge base changes. That's where most regressions sneak in.

What does your app do (customer support, internal search, something else)? The right mix depends a lot on that.

1

u/mrwhateveerrr 2d ago

tbh u cant really assert exact text with llms so we just keep a small set of tricky prompts and run them whenever we tweak a prompt or a model

1

u/Niharika9714 1d ago

A common way to handle the non-determinism is to stop expecting exact-match answers and instead score responses against criteria with thresholds. A few things that tend to work well together:

  1. Build a "golden" test set first. 50–200 real user questions with expected answers (or key facts the answer must contain). This matters more than which tool you pick.
  2. Tools, roughly by use case:

DeepEval: pytest-style, so it feels natural for QA. Has metrics like answer relevancy, faithfulness and hallucination. Ragas: focused on RAG apps (faithfulness, context precision/recall), useful if your chatbot answers from documents. Promptfoo: config-based, good for comparing prompts or models side by side and running checks in CI. Also has red-teaming checks. LangSmith: strong for tracing and debugging what happened inside a chain or agent, plus running evals on datasets.

3. Response validation:

Accuracy/hallucinations: LLM-as-judge with a clear rubric, checked against your golden answers or source documents Relevance: relevancy metrics plus spot checks Consistency: run the same input several times and measure how much the answers vary. Use low temperature for regression runs.

4. Keep humans in the loop. Review a sample of failures each week. LLM judges can be wrong too, so calibrate them against human ratings early on.

5. Treat prompt and model changes like code changes: re-run the eval suite on every change, so you catch regressions before release.