atlas

Research map / Large language models / Agents, code and math

QAagent: A Multiagent System for Unit Test Generation via Natural Language Pseudocode (Student Abstract)

AAAI 2025 · Large language models › Agents, code and math · approach: Software engineering agents · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes QAagent, a multi-agent LLM system that first generates natural-language pseudocode for a function and then uses it to generate unit tests covering base and edge cases, evaluated on HumanEval and MBPP for coverage and accuracy.

Problem

Automated unit test generation is time-consuming and current LLM-based test creation lacks accuracy and code coverage for reliable test-driven development and code generation pipelines.

Approach

Insert an LLM-written natural-language pseudocode plan (code architect agent, chain-of-thought) into the context before a test generator agent produces base and edge-case tests, so the tests better cover the function's logic without the model writing the implementation.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use QAagent instead of AgentCoderunit-test generation · HumanEval, first five test casesline coverage: 84.7 -> 96.2Helped
Use QAagent instead of AgentCoderunit-test generation · HumanEval, all test casesline coverage: 87.5 -> 96.6Helped
Use QAagent instead of AgentCoderunit-test generation · MBPP, first five test casesline coverage: 85.3 -> 87.8Helped
Use QAagent instead of AgentCoderunit-test generation · MBPP, all test casesline coverage: 89.5 -> 87.9Hurt
Use QAagent instead of AgentCoderunit-test generation · HumanEvalaccuracy: 87.8 -> 88.6Helped
Use QAagent instead of AgentCoderunit-test generation · MBPPaccuracy: 89.9 -> 52.7Hurt

Surprising findings

Limitations

Experimental setup

Datasets: HumanEval MBPP

Benchmarks: HumanEval MBPP

Metrics: line coverage test accuracy

Baselines: GPT-4 Turbo (zero-shot) CodeCoT AgentCoder

Builds on: chain-of-thought prompting AgentCoder CodeCoT

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy