<?xml version="1.0" encoding="UTF-8"?>
<doi_batch version="4.4.2" xmlns="http://www.crossref.org/schema/4.4.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jats="http://www.ncbi.nlm.nih.gov/JATS1" xsi:schemaLocation="http://www.crossref.org/schema/4.4.2 http://www.crossref.org/schema/deposit/crossref4.4.2.xsd">
<head>
  <doi_batch_id>71cf539319367b8b5f1340a</doi_batch_id>
  <timestamp>20241127121354223</timestamp>
  <depositor>
    <depositor_name>beie:beie</depositor_name>
    <email_address>director@blueeyesintelligence.org</email_address>
  </depositor>
  <registrant>WEB-FORM</registrant>
</head>
<body>
  <journal>
    <journal_metadata>
  <full_title>International Journal of Innovative Technology and Exploring Engineering</full_title>
  <abbrev_title>IJITEE</abbrev_title>
  <issn media_type='electronic'>22783075</issn>
  <doi_data>
    <doi>10.35940/ijitee</doi>
    <resource>https://www.ijitee.org/</resource>
  </doi_data>
</journal_metadata>
<journal_issue>
  <publication_date media_type='online'>
    <month>11</month>
    <day>30</day>
    <year>2024</year>
  </publication_date>
  <journal_volume>
    <volume>13</volume>
  </journal_volume>
  <issue>12</issue>
</journal_issue>

        <!-- ============== -->
<journal_article publication_type='full_text'>
  <titles>
    <title>Generate High-Coverage Unit Test Data Using the LLM Tool</title>
  </titles>
  <contributors>
    <organization sequence='first' contributor_role='author'>Faculty of Information Technology, Posts and Telecommunications Institute of Technology, Hanoi, Vietnam.</organization>
    <person_name sequence='first' contributor_role='author'>
     <given_name>Ngoc Thi</given_name>
      <surname>Bich Do</surname>
      <ORCID>https://orcid.org/0009-0004-3250-0154</ORCID>
    </person_name>
    <person_name sequence='additional' contributor_role='author'>
      <given_name>Chi Quynh</given_name>
      <surname>Nguyen</surname>
      <ORCID>https://orcid.org/0009-0007-6197-2486</ORCID>
    </person_name>
   <organization sequence='additional' contributor_role='author'>Faculty, Department of Computer Science, Posts and Telecommunications Institute of Technology, Hanoi, Vietnam.</organization>
  </contributors>
  <jats:abstract xml:lang='en'>
    <jats:p>Unit testing is a critical phase in the software development lifecycle, essential for ensuring the quality and reliability of code. However, the manual creation of unit test scripts and the preparation of corresponding test data can be a time consuming and labor intensive process. To address these challenges, several automated approaches have been explored, including search based, constraint based, random-based, and symbolic execution based techniques for generating unit tests. In recent years, the rapid advancement of large language models (LLMs) has opened new avenues for automating various tasks, including the automatic generation of unit test scripts and test data. Despite their potential, using LLMs in a straightforward manner to generate unit tests may lead to low test coverage. This means that a significant portion of the source code, including specific statements or branches, may remain untested, which can reduce the effectiveness of the tests. To overcome this limitation, the paper presents a novel approach that not only automates the generation of unit test scripts and test data but also improves test coverage. The proposed solution begins by using an LLM tool (such as ChatGPT) to generate initial unit test scripts and data from the source code. To enhance test coverage, the specification document of the source code is also input into the LLM to generate additional test data. Following this, a coverage checking tool is used to evaluate the test coverage and identify untested statements or branches. The LLM is then applied again to generate new test data aimed specifically at addressing these gaps. The initial experimental results indicate that this method significantly improves test coverage, demonstrating its potential to enhance automated unit testing processes.</jats:p>
  </jats:abstract>
  <publication_date media_type='online'>
    <month>11</month>
    <day>30</day>
    <year>2024</year>
  </publication_date>
  <publication_date media_type='online'>
    <month>11</month>
    <day>30</day>
    <year>2024</year>
  </publication_date>
  <pages>
    <first_page>13</first_page>
    <last_page>18</last_page>
  </pages>
  <crossmark>
  <crossmark_version>CC-BY-NC-ND 4.0</crossmark_version>
    <crossmark_policy>10.35940/BEIESP.CrossMarkPolicy</crossmark_policy>
    <crossmark_domains>
      <crossmark_domain>
         <domain>www.ijitee.org</domain>
      </crossmark_domain>
    </crossmark_domains>
  <crossmark_domain_exclusive>true</crossmark_domain_exclusive>
<custom_metadata>
  <assertion explanation='Published On' group_label='Published On' group_name='Journal' href='https://www.ijitee.org/' label='Journal Name' name='Journal' order='0'>International Journal of Innovative Technology and Exploring Engineering (IJITEE)</assertion>
      <assertion explanation='Publisher By' group_label='Publisher By' group_name='Publisher' href='https://www.blueeyesintelligence.org/' label='Publisher Name' name='Publisher' order='1'>Blue Eyes Intelligence Engineering and Sciences Publication (BEIESP)</assertion>
      <assertion explanation='Declaration' group_label='Declaration' group_name='Declaration' label='Conflicts of Interest' name='Declaration' order='2'>Based on my understanding, this article has no conflicts of interest.</assertion>
      <assertion explanation='Declaration' group_label='Declaration' group_name='Declaration' label='Funding Support' name='Declaration' order='3'>This article has not been funded by any organizations or agencies. This independence ensures that the research is conducted with objectivity and without any external influence.</assertion>
      <assertion explanation='Declaration' group_label='Declaration' group_name='Declaration' label='Ethical Approval and Consent to Participate' name='Declaration' order='4'>The content of this article does not necessitate ethical approval or consent to participate with supporting documentation.</assertion>
      <assertion explanation='Declaration' group_label='Declaration' group_name='Declaration' label='Data Access Statement and Material Availability' name='Declaration' order='5'>The adequate resources of this article are publicly accessible.</assertion>
      <assertion explanation='Declaration' group_label='Declaration' group_name='Declaration' label='Authors Contributions' name='Declaration' order='6'>The authorship of this article is contributed equally to all participating individuals.</assertion>
    </custom_metadata>
  </crossmark>
  <doi_data>
    <doi>10.35940/ijitee.L9996.13121124</doi>
    <resource>https://www.ijitee.org/portfolio-item/L999613121124/</resource>
  </doi_data>
</journal_article>

  </journal>
</body>
</doi_batch>
