DC Field | Value | Language |
---|---|---|
dc.contributor.author | Kang, Sungmin | ko |
dc.contributor.author | Yoon, Juyeon | ko |
dc.contributor.author | Yoo, Shin | ko |
dc.date.accessioned | 2023-11-07T05:02:19Z | - |
dc.date.available | 2023-11-07T05:02:19Z | - |
dc.date.created | 2023-11-06 | - |
dc.date.issued | 2023-05-17 | - |
dc.identifier.citation | 2023 IEEE/ACM 45th International Conference on Software Engineering (ICSE) | - |
dc.identifier.issn | 0270-5257 | - |
dc.identifier.uri | http://hdl.handle.net/10203/314355 | - |
dc.description.abstract | Many automated test generation techniques have been developed to aid developers with writing tests. To facilitate full automation, most existing techniques aim to either increase coverage, or generate exploratory inputs. However, existing test generation techniques largely fall short of achieving more semantic objectives, such as generating tests to reproduce a given bug report. Reproducing bugs is nonetheless important, as our empirical study shows that the number of tests added in open source repositories due to issues was about 28% of the corresponding project test suite size. Meanwhile, due to the difficulties of transforming the expected program semantics in bug reports into test oracles, existing failure reproduction techniques tend to deal exclusively with program crashes, a small subset of all bug reports. To automate test generation from general bug reports, we propose Libro, a framework that uses Large Language Models (LLMs), which have been shown to be capable of performing code-related tasks. Since LLMs themselves cannot execute the target buggy code, we focus on post-processing steps that help us discern when LLMs are effective, and rank the produced tests according to their validity. Our evaluation of Libro shows that, on the widely studied Defects4J benchmark, Libro can generate failure reproducing test cases for 33% of all studied cases (251 out of 750), while suggesting a bug reproducing test in first place for 149 bugs. To mitigate data contamination (i.e., the possibility of the LLM simply remembering the test code either partially or in whole), we also evaluate Libro against 31 bug reports submitted after the collection of the LLM training data terminated: Libro produces bug reproducing tests for 32% of the studied bug reports. Overall, our results show Libro has the potential to significantly enhance developer efficiency by automatically generating tests from bug reports. | - |
dc.language | English | - |
dc.publisher | IEEE | - |
dc.title | Large Language Models are Few-shot Testers: Exploring LLM-based General Bug Reproduction | - |
dc.type | Conference | - |
dc.identifier.wosid | 001032629800185 | - |
dc.identifier.scopusid | 2-s2.0-85159708406 | - |
dc.type.rims | CONF | - |
dc.citation.publicationname | 2023 IEEE/ACM 45th International Conference on Software Engineering (ICSE) | - |
dc.identifier.conferencecountry | AT | - |
dc.identifier.conferencelocation | Melbourne | - |
dc.identifier.doi | 10.1109/icse48619.2023.00194 | - |
dc.contributor.localauthor | Yoo, Shin | - |
dc.contributor.nonIdAuthor | Kang, Sungmin | - |
dc.contributor.nonIdAuthor | Yoon, Juyeon | - |
Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.