English

Automatically Generating Web Applications from Requirements Via Multi-Agent Test-Driven Development

Software Engineering 2025-10-02 v2 Artificial Intelligence

Abstract

Developing full-stack web applications is complex and time-intensive, demanding proficiency across diverse technologies and frameworks. Although recent advances in multimodal large language models (MLLMs) enable automated webpage generation from visual inputs, current solutions remain limited to front-end tasks and fail to deliver fully functional applications. In this work, we introduce TDDev, the first test-driven development (TDD)-enabled LLM-agent framework for end-to-end full-stack web application generation. Given a natural language description or design image, TDDev automatically derives executable test cases, generates front-end and back-end code, simulates user interactions, and iteratively refines the implementation until all requirements are satisfied. Our framework addresses key challenges in full-stack automation, including underspecified user requirements, complex interdependencies among multiple files, and the need for both functional correctness and visual fidelity. Through extensive experiments on diverse application scenarios, TDDev achieves a 14.4% improvement on overall accuracy compared to state-of-the-art baselines, demonstrating its effectiveness in producing reliable, high-quality web applications without requiring manual intervention.

Keywords

Cite

@article{arxiv.2509.25297,
  title  = {Automatically Generating Web Applications from Requirements Via Multi-Agent Test-Driven Development},
  author = {Yuxuan Wan and Tingshuo Liang and Jiakai Xu and Jingyu Xiao and Yintong Huo and Michael R. Lyu},
  journal= {arXiv preprint arXiv:2509.25297},
  year   = {2025}
}
R2 v1 2026-07-01T06:05:47.735Z