Pith. sign in

REVIEW 2 cited by

PyTester: Deep Reinforcement Learning for Text-to-Testcase Generation

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2401.07576 v2 pith:OA6I5SVI submitted 2024-01-15 cs.SE

classification cs.SE
keywords testcasesapproachesgenerategenerationpytestercodedeep
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

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.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Code Readability in the Age of Large Language Models: An Industrial Case Study from Atlassian

    cs.SE 2025-01 conditional novelty 6.0 of 10

    Practitioners still see code readability as important, and Atlassian's LLM-generated code matches human-written code on eight readability metrics with small or negligible differences.

  2. ViUniT: Visual Unit Tests for More Robust Visual Programming

    cs.CV 2024-12 conditional novelty 6.0 of 10

    ViUniT automatically generates synthetic image-answer unit tests to evaluate visual programs, improving selection, re-prompting, refusal, and reinforcement learning across VQA and image-text matching.

Pith tools