{"id":"https://openalex.org/W4400582690","doi":"https://doi.org/10.1145/3660783","title":"Evaluating and Improving ChatGPT for Unit Test Generation","display_name":"Evaluating and Improving ChatGPT for Unit Test Generation","publication_year":2024,"publication_date":"2024-07-12","ids":{"openalex":"https://openalex.org/W4400582690","doi":"https://doi.org/10.1145/3660783"},"language":"en","primary_location":{"id":"doi:10.1145/3660783","is_oa":true,"landing_page_url":"https://doi.org/10.1145/3660783","pdf_url":null,"source":{"id":"https://openalex.org/S4404663975","display_name":"Proceedings of the ACM on software engineering.","issn_l":"2994-970X","issn":["2994-970X"],"is_oa":false,"is_in_doaj":false,"is_core":false,"host_organization":"https://openalex.org/P4310319798","host_organization_name":"Association for Computing Machinery","host_organization_lineage":["https://openalex.org/P4310319798"],"host_organization_lineage_names":["Association for Computing Machinery"],"type":"journal"},"license":"cc-by","license_id":"https://openalex.org/licenses/cc-by","version":"publishedVersion","is_accepted":true,"is_published":true,"raw_source_name":"Proceedings of the ACM on Software Engineering","raw_type":"journal-article"},"type":"article","indexed_in":["crossref"],"open_access":{"is_oa":true,"oa_status":"hybrid","oa_url":"https://doi.org/10.1145/3660783","any_repository_has_fulltext":false},"authorships":[{"author_position":"first","author":{"id":"https://openalex.org/A5101811003","display_name":"Zhiqiang Yuan","orcid":"https://orcid.org/0000-0002-6497-9380"},"institutions":[{"id":"https://openalex.org/I24943067","display_name":"Fudan University","ror":"https://ror.org/013q1eq08","country_code":"CN","type":"education","lineage":["https://openalex.org/I24943067"]}],"countries":["CN"],"is_corresponding":false,"raw_author_name":"Zhiqiang Yuan","raw_affiliation_strings":["Fudan University, Shanghai, China"],"raw_orcid":"https://orcid.org/0000-0002-6497-9380","affiliations":[{"raw_affiliation_string":"Fudan University, Shanghai, China","institution_ids":["https://openalex.org/I24943067"]}]},{"author_position":"middle","author":{"id":"https://openalex.org/A5100697907","display_name":"Mingwei Liu","orcid":"https://orcid.org/0000-0002-3462-997X"},"institutions":[{"id":"https://openalex.org/I24943067","display_name":"Fudan University","ror":"https://ror.org/013q1eq08","country_code":"CN","type":"education","lineage":["https://openalex.org/I24943067"]}],"countries":["CN"],"is_corresponding":false,"raw_author_name":"Mingwei Liu","raw_affiliation_strings":["Fudan University, Shanghai, China"],"raw_orcid":"https://orcid.org/0000-0002-3462-997X","affiliations":[{"raw_affiliation_string":"Fudan University, Shanghai, China","institution_ids":["https://openalex.org/I24943067"]}]},{"author_position":"middle","author":{"id":"https://openalex.org/A5059743716","display_name":"Shiji Ding","orcid":"https://orcid.org/0009-0007-7781-4095"},"institutions":[{"id":"https://openalex.org/I24943067","display_name":"Fudan University","ror":"https://ror.org/013q1eq08","country_code":"CN","type":"education","lineage":["https://openalex.org/I24943067"]}],"countries":["CN"],"is_corresponding":false,"raw_author_name":"Shiji Ding","raw_affiliation_strings":["Fudan University, Shanghai, China"],"raw_orcid":"https://orcid.org/0009-0007-7781-4095","affiliations":[{"raw_affiliation_string":"Fudan University, Shanghai, China","institution_ids":["https://openalex.org/I24943067"]}]},{"author_position":"middle","author":{"id":"https://openalex.org/A5039575081","display_name":"Kaixin Wang","orcid":"https://orcid.org/0009-0002-6414-2174"},"institutions":[{"id":"https://openalex.org/I24943067","display_name":"Fudan University","ror":"https://ror.org/013q1eq08","country_code":"CN","type":"education","lineage":["https://openalex.org/I24943067"]}],"countries":["CN"],"is_corresponding":false,"raw_author_name":"Kaixin Wang","raw_affiliation_strings":["Fudan University, Shanghai, China"],"raw_orcid":"https://orcid.org/0009-0002-6414-2174","affiliations":[{"raw_affiliation_string":"Fudan University, Shanghai, China","institution_ids":["https://openalex.org/I24943067"]}]},{"author_position":"middle","author":{"id":"https://openalex.org/A5026843654","display_name":"Yixuan Chen","orcid":"https://orcid.org/0009-0006-8804-1828"},"institutions":[{"id":"https://openalex.org/I24943067","display_name":"Fudan University","ror":"https://ror.org/013q1eq08","country_code":"CN","type":"education","lineage":["https://openalex.org/I24943067"]}],"countries":["CN"],"is_corresponding":false,"raw_author_name":"Yixuan Chen","raw_affiliation_strings":["Fudan University, Shanghai, China"],"raw_orcid":"https://orcid.org/0009-0006-8804-1828","affiliations":[{"raw_affiliation_string":"Fudan University, Shanghai, China","institution_ids":["https://openalex.org/I24943067"]}]},{"author_position":"middle","author":{"id":"https://openalex.org/A5101854992","display_name":"Xin Peng","orcid":"https://orcid.org/0000-0003-3376-2581"},"institutions":[{"id":"https://openalex.org/I24943067","display_name":"Fudan University","ror":"https://ror.org/013q1eq08","country_code":"CN","type":"education","lineage":["https://openalex.org/I24943067"]}],"countries":["CN"],"is_corresponding":false,"raw_author_name":"Xin Peng","raw_affiliation_strings":["Fudan University, Shanghai, China"],"raw_orcid":"https://orcid.org/0000-0003-3376-2581","affiliations":[{"raw_affiliation_string":"Fudan University, Shanghai, China","institution_ids":["https://openalex.org/I24943067"]}]},{"author_position":"last","author":{"id":"https://openalex.org/A5024354460","display_name":"Yiling Lou","orcid":"https://orcid.org/0000-0002-4066-3365"},"institutions":[{"id":"https://openalex.org/I24943067","display_name":"Fudan University","ror":"https://ror.org/013q1eq08","country_code":"CN","type":"education","lineage":["https://openalex.org/I24943067"]}],"countries":["CN"],"is_corresponding":false,"raw_author_name":"Yiling Lou","raw_affiliation_strings":["Fudan University, Shanghai, China"],"raw_orcid":"https://orcid.org/0000-0002-4066-3365","affiliations":[{"raw_affiliation_string":"Fudan University, Shanghai, China","institution_ids":["https://openalex.org/I24943067"]}]}],"institutions":[],"countries_distinct_count":1,"institutions_distinct_count":1,"corresponding_author_ids":[],"corresponding_institution_ids":["https://openalex.org/I24943067"],"apc_list":null,"apc_paid":null,"fwci":52.5206,"has_fulltext":false,"cited_by_count":113,"citation_normalized_percentile":{"value":0.99962936,"is_in_top_1_percent":true,"is_in_top_10_percent":true},"cited_by_percentile_year":{"min":98,"max":100},"biblio":{"volume":"1","issue":"FSE","first_page":"1703","last_page":"1726"},"is_retracted":false,"is_paratext":false,"is_xpac":false,"primary_topic":{"id":"https://openalex.org/T10743","display_name":"Software Testing and Debugging Techniques","score":0.9998000264167786,"subfield":{"id":"https://openalex.org/subfields/1712","display_name":"Software"},"field":{"id":"https://openalex.org/fields/17","display_name":"Computer Science"},"domain":{"id":"https://openalex.org/domains/3","display_name":"Physical Sciences"}},"topics":[{"id":"https://openalex.org/T10743","display_name":"Software Testing and Debugging Techniques","score":0.9998000264167786,"subfield":{"id":"https://openalex.org/subfields/1712","display_name":"Software"},"field":{"id":"https://openalex.org/fields/17","display_name":"Computer Science"},"domain":{"id":"https://openalex.org/domains/3","display_name":"Physical Sciences"}},{"id":"https://openalex.org/T12423","display_name":"Software Reliability and Analysis Research","score":0.9958999752998352,"subfield":{"id":"https://openalex.org/subfields/1712","display_name":"Software"},"field":{"id":"https://openalex.org/fields/17","display_name":"Computer Science"},"domain":{"id":"https://openalex.org/domains/3","display_name":"Physical Sciences"}},{"id":"https://openalex.org/T10260","display_name":"Software Engineering Research","score":0.9812999963760376,"subfield":{"id":"https://openalex.org/subfields/1710","display_name":"Information Systems"},"field":{"id":"https://openalex.org/fields/17","display_name":"Computer Science"},"domain":{"id":"https://openalex.org/domains/3","display_name":"Physical Sciences"}}],"keywords":[{"id":"https://openalex.org/keywords/test","display_name":"Test (biology)","score":0.5281498432159424},{"id":"https://openalex.org/keywords/unit","display_name":"Unit (ring theory)","score":0.4313289523124695},{"id":"https://openalex.org/keywords/computer-science","display_name":"Computer science","score":0.4170933961868286},{"id":"https://openalex.org/keywords/reliability-engineering","display_name":"Reliability engineering","score":0.35723811388015747},{"id":"https://openalex.org/keywords/mathematics","display_name":"Mathematics","score":0.2167610228061676},{"id":"https://openalex.org/keywords/engineering","display_name":"Engineering","score":0.16873890161514282},{"id":"https://openalex.org/keywords/geology","display_name":"Geology","score":0.10971617698669434},{"id":"https://openalex.org/keywords/mathematics-education","display_name":"Mathematics education","score":0.07873779535293579}],"concepts":[{"id":"https://openalex.org/C2777267654","wikidata":"https://www.wikidata.org/wiki/Q3519023","display_name":"Test (biology)","level":2,"score":0.5281498432159424},{"id":"https://openalex.org/C122637931","wikidata":"https://www.wikidata.org/wiki/Q118084","display_name":"Unit (ring theory)","level":2,"score":0.4313289523124695},{"id":"https://openalex.org/C41008148","wikidata":"https://www.wikidata.org/wiki/Q21198","display_name":"Computer science","level":0,"score":0.4170933961868286},{"id":"https://openalex.org/C200601418","wikidata":"https://www.wikidata.org/wiki/Q2193887","display_name":"Reliability engineering","level":1,"score":0.35723811388015747},{"id":"https://openalex.org/C33923547","wikidata":"https://www.wikidata.org/wiki/Q395","display_name":"Mathematics","level":0,"score":0.2167610228061676},{"id":"https://openalex.org/C127413603","wikidata":"https://www.wikidata.org/wiki/Q11023","display_name":"Engineering","level":0,"score":0.16873890161514282},{"id":"https://openalex.org/C127313418","wikidata":"https://www.wikidata.org/wiki/Q1069","display_name":"Geology","level":0,"score":0.10971617698669434},{"id":"https://openalex.org/C145420912","wikidata":"https://www.wikidata.org/wiki/Q853077","display_name":"Mathematics education","level":1,"score":0.07873779535293579},{"id":"https://openalex.org/C151730666","wikidata":"https://www.wikidata.org/wiki/Q7205","display_name":"Paleontology","level":1,"score":0.0}],"mesh":[],"locations_count":1,"locations":[{"id":"doi:10.1145/3660783","is_oa":true,"landing_page_url":"https://doi.org/10.1145/3660783","pdf_url":null,"source":{"id":"https://openalex.org/S4404663975","display_name":"Proceedings of the ACM on software engineering.","issn_l":"2994-970X","issn":["2994-970X"],"is_oa":false,"is_in_doaj":false,"is_core":false,"host_organization":"https://openalex.org/P4310319798","host_organization_name":"Association for Computing Machinery","host_organization_lineage":["https://openalex.org/P4310319798"],"host_organization_lineage_names":["Association for Computing Machinery"],"type":"journal"},"license":"cc-by","license_id":"https://openalex.org/licenses/cc-by","version":"publishedVersion","is_accepted":true,"is_published":true,"raw_source_name":"Proceedings of the ACM on Software Engineering","raw_type":"journal-article"}],"best_oa_location":{"id":"doi:10.1145/3660783","is_oa":true,"landing_page_url":"https://doi.org/10.1145/3660783","pdf_url":null,"source":{"id":"https://openalex.org/S4404663975","display_name":"Proceedings of the ACM on software engineering.","issn_l":"2994-970X","issn":["2994-970X"],"is_oa":false,"is_in_doaj":false,"is_core":false,"host_organization":"https://openalex.org/P4310319798","host_organization_name":"Association for Computing Machinery","host_organization_lineage":["https://openalex.org/P4310319798"],"host_organization_lineage_names":["Association for Computing Machinery"],"type":"journal"},"license":"cc-by","license_id":"https://openalex.org/licenses/cc-by","version":"publishedVersion","is_accepted":true,"is_published":true,"raw_source_name":"Proceedings of the ACM on Software Engineering","raw_type":"journal-article"},"sustainable_development_goals":[{"score":0.7400000095367432,"display_name":"Quality Education","id":"https://metadata.un.org/sdg/4"}],"awards":[],"funders":[],"has_content":{"grobid_xml":false,"pdf":false},"content_urls":null,"referenced_works_count":28,"referenced_works":["https://openalex.org/W579397108","https://openalex.org/W1544145945","https://openalex.org/W1964730672","https://openalex.org/W2002753905","https://openalex.org/W2041713059","https://openalex.org/W2066536303","https://openalex.org/W2109596254","https://openalex.org/W2110908283","https://openalex.org/W2133414060","https://openalex.org/W2154897437","https://openalex.org/W2882984136","https://openalex.org/W2930957955","https://openalex.org/W3005628256","https://openalex.org/W3099006712","https://openalex.org/W3105903381","https://openalex.org/W3170092793","https://openalex.org/W3212260724","https://openalex.org/W4229730107","https://openalex.org/W4246649926","https://openalex.org/W4248950571","https://openalex.org/W4313059319","https://openalex.org/W4318976592","https://openalex.org/W4320854935","https://openalex.org/W4378676756","https://openalex.org/W4385302156","https://openalex.org/W4388505012","https://openalex.org/W6632775507","https://openalex.org/W6667064302"],"related_works":["https://openalex.org/W4391375266","https://openalex.org/W2748952813","https://openalex.org/W2390279801","https://openalex.org/W2358668433","https://openalex.org/W4396701345","https://openalex.org/W2376932109","https://openalex.org/W2001405890","https://openalex.org/W4396696052","https://openalex.org/W2382290278","https://openalex.org/W4395014643"],"abstract_inverted_index":{"Unit":[0],"testing":[1],"plays":[2],"an":[3,259,264],"essential":[4],"role":[5],"in":[6,9,53,67,119,124,149],"detecting":[7],"bugs":[8],"functionally-discrete":[10],"program":[11],"units":[12],"(":[13,107,322],"e.g.":[14],",":[15,236,324],"methods).":[16],"Manually":[17],"writing":[18],"high-quality":[19],"unit":[20,68,125,208,240],"tests":[21,34,148,161,185,192,209,222,285,294,340],"is":[22],"time-consuming":[23],"and":[24,45,88,122,136,155,174,198,263,286,326,328],"laborious.":[25],"Although":[26],"the":[27,59,80,97,103,112,143,160,183,217,250,271,299,309,337],"traditional":[28],"techniques":[29],"are":[30,39,82],"able":[31],"to":[32,41,101,140,248,304,317],"generate":[33],"with":[35,116,210,295],"reasonable":[36],"coverage,":[37,196],"they":[38],"shown":[40,58],"exhibit":[42],"low":[43],"readability":[44],"still":[46,165],"cannot":[47],"be":[48,213,224],"directly":[49],"adopted":[50],"by":[51,163,179,187,193,228,275,314,342],"developers":[52],"practice.":[54],"Recent":[55],"work":[56],"has":[57],"large":[60,63],"potential":[61],"of":[62,84,105,111,145,151,219,252,273,312,339],"language":[64],"models":[65,81],"(LLMs)":[66],"test":[69,90,126,241,261,266],"generation.":[70,127],"By":[71],"being":[72],"pre-trained":[73],"on":[74],"a":[75,133,137,237],"massive":[76],"developer-written":[77],"code":[78,120],"corpus,":[79],"capable":[83],"generating":[85,207,276],"more":[86,283,293],"human-like":[87],"meaningful":[89],"code.":[91],"In":[92,128,302],"this":[93],"work,":[94],"we":[95,130,232,306],"perform":[96],"first":[98],"empirical":[99],"study":[100,139],"evaluate":[102],"capability":[104],"ChatGPT":[106,164,188,211,246],"i.e":[108],".,":[109],"one":[110],"most":[113],"representative":[114],"LLMs":[115,321],"outstanding":[117],"performance":[118],"generation":[121,242],"comprehension)":[123],"particular,":[129],"conduct":[131],"both":[132],"quantitative":[134],"analysis":[135],"user":[138],"systematically":[141],"investigate":[142,308],"quality":[144,251,338],"its":[146,220,253],"generated":[147,162,186,221,254,341],"terms":[150],"correctness,":[152],"sufficiency,":[153],"readability,":[154,197],"usability.":[156],"We":[157],"find":[158],"that":[159,206,332],"suffer":[166],"from":[167],"correctness":[168,218],"issues,":[169],"including":[170],"diverse":[171],"compilation":[172],"errors":[173],"execution":[175],"failures":[176],"(mostly":[177],"caused":[178],"incorrect":[180],"assertions);":[181],"but":[182],"passing":[184],"almost":[189],"resemble":[190],"manually-written":[191],"achieving":[194],"comparable":[195],"even":[199],"sometimes":[200],"developers\u2019":[201],"preference.":[202],"Our":[203,268],"findings":[204,230],"indicate":[205],"could":[212,223],"very":[214],"promising":[215],"if":[216],"further":[225,233,307],"improved.":[226],"Inspired":[227],"our":[229,329],"above,":[231],"propose":[234],"ChatTester":[235,274,313,333],"novel":[238],"ChatGPT-based":[239],"approach,":[243],"which":[244],"leverages":[245],"itself":[247],"improve":[249,336],"tests.":[255],"Chat":[256],"Tester":[257],"incorporates":[258],"initial":[260],"generator":[262],"iterative":[265],"refiner.":[267],"evaluation":[269],"demonstrates":[270],"effectiveness":[272],"<mml:math":[277,287],"xmlns:mml=\"http://www.w3.org/1998/Math/MathML\"":[278,288],"display=\"inline\">":[279,289],"<mml:mn>34.3</mml:mn>":[280],"<mml:mo>%</mml:mo>":[281,291],"</mml:math>":[282,292],"compilable":[284],"<mml:mn>18.7</mml:mn>":[290],"correct":[296],"assertions":[297],"than":[298],"default":[300],"ChatGPT.":[301],"addition":[303],"ChatGPT,":[305],"generalization":[310],"capabilities":[311],"applying":[315],"it":[316],"two":[318],"recent":[319],"open-source":[320],"i.e.":[323],"CodeLlama-Instruct":[325],"CodeFuse)":[327],"results":[330],"show":[331],"can":[334],"also":[335],"these":[343],"LLMs.":[344]},"counts_by_year":[{"year":2026,"cited_by_count":43},{"year":2025,"cited_by_count":64},{"year":2024,"cited_by_count":6}],"updated_date":"2026-07-18T07:39:51.176621","created_date":"2025-10-10T00:00:00"}
