GithubHelp home page GithubHelp logo

glo_gan_aug's Introduction

This is the online repository of a test case augmentation Techniques.

Task Definition

Model-domain Synthesized Failing Test Augmentation for Fault Localization with Influential-contexts-based GAN.

Dataset

The datasets we used are from Defects4J,ManyBugs,SIR.

This is a replication package for the task with nanoxml_v2 source code:StdXMLParser.java buggy line:363

Data Format

  1. Coverage_Info/componentinfo.txt is stored in txt format. The first row is the number of total executed statements. The second row is the line number of each statement.

  2. Coverage_Info/covMatrix.txt is stored in txt format. It is the model-domain test cases. Each row is a test case, the element 1 or 0 is the coverage information of statements, in which 1 denotes the corresponding statement is executed by the test case, and 0 otherwise.

  3. Coverage_Info/error.txt is stored in txt format. It is the test cases' results, each line represents one result. 1 means a failed test case and 0 denotes a successful test case.

  4. Coverage_Info/covMatrix_new.txt is stored in txt format. It is result of the generated model-domain test cases, each row represents one generated model-domain test case. the elements are the value of statements.

Usage

You can get generated model-domain test cases' results using the following command.

cd Coverage_Info
./getResult.sh
cd ..
python testcase_aug.py dev

Generated model-domain test cases' result is Coverage_Info/covMatrix_new.txt

Dependency

  • gcc >= 3.3.1
  • python version: python3.7.6
  • pip install torch
  • pip install numpy

Evaluator

You can get the evaluated results with synthesized failing test augmentation using the following command.

cd SFL_compute_augmentation
./run_aug.sh

Fault localization results are in result.txt, the 1st element from the left is the method name, the 2rd is the value of Rank while the 4th is the value of EXAM. You can get the original evaluated results using the following command.

cd SFL_compute_original
./run_orig.sh

Fault localization results are in result.txt, the 1st element from the left is the method name, the 2rd is the value of Rank while the 4th is the value of EXAM.

glo_gan_aug's People

Contributors

oy-sarah avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.