Published August 28, 2023 | Version 1.1
Dataset Open

Replication Package for "Improving the Readability of Generated Tests Using GPT-4 and ChatGPT Code Interpreter"

Authors/Creators

  • 1. Chalmers and University of Gothenburg

Description

While automated test generation can decrease the human burden associated with testing, it does not eliminate this burden. Humans must still work with generated test cases to interpret testing results, debug the code, build and maintain a comprehensive test suite, and many other tasks. Therefore, a major challenge with automated test generation is understandability of generated test test cases. 

Large language models (LLMs), machine learning models trained on massive corpora of textual data - including both natural language and programming languages - are an emerging technology with great potential for performing language-related predictive tasks such as translation, summarization, and decision support. 

In this study, we are exploring the capabilities of LLMs with regard to improving test case understandability.

This package contains the data produced during this exploration:

  • The examples directory contains the three case studies we tested our transformation process on:
    • queue_example: Tests of a basic queue data structure
    • httpie_sessions: Tests of the sessions module from the httpie project. 
    • string_utils_validation: Tests of the validation module from the python-string-utils project.
    • Each directory contains the modules-under-test, the original test cases generated by Pynguin, and the transformed test cases. 
    • Two trials were performed per case example of the transformation technique to assess the impact of different results from the LLM.
  • The survey directory contains the survey that was sent to assess the impact of the transformation on test readability.
    • survey.pdf contains the survey questions.
    • responses.xlsx contains the survey results.

Files

GenTestReadability.zip

Files (4.2 MB)

Name Size Download all
md5:f531b2574cfc7405d0bce605c98a96a6
4.2 MB Preview Download
md5:0bb5cae2b1287d33eee8e8ba1cb81aea
1.8 kB Preview Download