Skip to content

The artifact repository for the paper "Can ChatGPT repair Non-Order-Dependent Tests?" in Flaky Test Workshop at ICSE2024, Lisbon, Portugal, April 2024.

Notifications You must be signed in to change notification settings

Intelligent-CAT-Lab/NODoctor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

NODoctor

The artifact repository for paper "Can ChatGPT repair Non-Order-Dependent Tests?" in Flaky Test Workshop at ICSE2024, Lisbon, Portugal, April 2024.

Reproduce results

  1. To set up the environments:
bash -x scripts/setup.sh
  1. To clone all Java projects into a directory, one can run the following command:
bash -x clone.sh [InputCSV] [CloneDIR]

The arguments are as follows:

  • InputCSV: An input csv files which includes the info of project,sha,module, such as:
https://github.com/apache/nifi,2bd752d868a8f3e36113b078bb576cf054e945e8,nifi-commons/nifi-record
  • CloneDIR: the directory where all Java projects to be cloned
  1. To reproduce the results, one can run the following command:
bash -x scripts/repair.sh [InputCSV] [CloneDIR] [APIKey] [ResultDir] NOD_repair.py

The arguments are as follows:

  • InputCSV: An input csv files which includes the info of project,sha,module,test,type,status,pr,notes for each test (same information as in IDoFT, such as:
https://github.com/apache/nifi,2bd752d868a8f3e36113b078bb576cf054e945e8,nifi-commons/nifi-record,org.apache.nifi.serialization.record.TestDataTypeUtils.testInferTypeWithMapNonStringKeys,ID,,,,
  • CloneDIR: the directory where all Java projects are located
  • APIKey: OpenAI token
  • ResultDir: the directory to save all results. Each run of the experiments will generate a directory with a unique SHA as the folder name, under the folder there are patches, detailed result information, and all logs

About

The artifact repository for the paper "Can ChatGPT repair Non-Order-Dependent Tests?" in Flaky Test Workshop at ICSE2024, Lisbon, Portugal, April 2024.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published