PyTester: Deep Reinforcement Learning for Text-to-Testcase Generation
Not on the map. Why?
Abstract (arXiv)
Test-driven development (TDD) is a widely-employed software development practice that mandates writing test cases based on requirements before writing the actual code. While writing test cases is the centerpiece of TDD, it is time-consuming, expensive, and often shunned by developers. To address these issues associated with TDD, automated test case generation approaches have recently been investigated. Such approaches take source code as input, but not the requirements. Therefore, existing work does not fully support true TDD, as actual code is required to generate test cases. In addition, current deep learning-based test case generation approaches are trained with one learning objective, i.e., to generate test cases that are exactly matched with the ground-truth test cases. However, such approaches may limit the model's ability to generate different yet correct test cases. In this paper, we introduce PyTester, a Text-to-Testcase generation approach that can automatically generate syntactically correct, executable, complete, and effective test cases while being aligned with a given natural language requirement. We evaluate PyTester on the public APPS benchmark dataset, and the results show that our Deep RL approach enables PyTester, a small language model, to outperform much larger language models like GPT3.5, StarCoder, and InCoder. Our findings suggest that future research could consider improving small over large LMs for better resource efficiency by integrating the SE domain knowledge into the design of reinforcement learning architecture.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). First posted on arXiv 15 Jan 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2024: 2; 2025: 2; 2026: 2.
6 papers.
- 2024Human-In-the-Loop Software Development Agentscited by 42
- 2025Code Readability in the Age of Large Language Models: An Industrial Case Study from Atlassiancited by 4
- 2026AI-Driven Test Case Generation from Natural Language Requirements: A Survey of Techniques and Research Gapscited by 1
- 2026Two-Stage Reinforcement Learning for Sound and Adversarial Test Generation in Code LLMscited by 1
- 2024Using Quality Attribute Scenarios for ML Model Test Case Generationcited by 0
- 2025NALA_MAINZ at BLP-2025 Task 2: A Multi-agent Approach for Bangla Instruction to Python Code Generationcited by 0
- 2026Two-Stage Reinforcement Learning for Sound and Adversarial Test Generation in Code LLMs3 Sep 2026
- 2026AI-Driven Test Case Generation from Natural Language Requirements: A Survey of Techniques and Research Gaps4 Jun 2026
- 2025NALA_MAINZ at BLP-2025 Task 2: A Multi-agent Approach for Bangla Instruction to Python Code Generation20 Nov 2025
- 2025Code Readability in the Age of Large Language Models: An Industrial Case Study from Atlassian20 Jan 2025
- 2024Human-In-the-Loop Software Development Agents19 Nov 2024
- 2024Using Quality Attribute Scenarios for ML Model Test Case Generation12 Jun 2024