Litcius/Paper detail

Using GitHub Copilot for Test Generation in Python: An Empirical Study

Khalid El Haji, Carolin Brandt, Andy Zaidman

202420 citationsDOIOpen Access PDF

Abstract

Writing unit tests is a crucial task in software development, but it is also recognized as a time-consuming and tedious task. As such, numerous test generation approaches have been proposed and investigated. However, most of these test generation tools produce tests that are typically difficult to understand. Recently, Large Language Models (LLMs) have shown promising results in generating source code and supporting software engineering tasks. As such, we investigate the usability of tests generated by GitHub Copilot, a proprietary closed-source code generation tool that uses an LLM. We evaluate GitHub Copilot's test generation abilities both within and without an existing test suite, and we study the impact of different code commenting strategies on test generations.

Topics & Concepts

Python (programming language)Computer scienceUnit testingTest suiteSoftware engineeringUsabilitySource codeTest-driven developmentTask (project management)Code coverageSuiteSoftwareTest (biology)Open sourceSoftware developmentTest caseProgramming languageHuman–computer interactionSystems engineeringEngineeringMachine learningBiologyRegression analysisHistoryArchaeologyPaleontologySoftware Testing and Debugging TechniquesSoftware Engineering ResearchSoftware Reliability and Analysis Research
Using GitHub Copilot for Test Generation in Python: An Empirical Study | Litcius