Why can't you just test LLM apps with normal unit tests?
BeginnerConceptEvaluation & observability
Answer
Outputs vary in wording and there are many acceptable answers, so exact-match assertions break. You still unit-test the code around the model, but for model output you check properties: valid JSON, correct label, contains the key fact, cites a source, stays under a length, or a grader's score.