Skip to content

An automated testing tool to fuzz JavaScript transpiler

Notifications You must be signed in to change notification settings

clhiker/TransFuzz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TransFuzz

Source code of Detecting JavaScript Transpiler bugs with Grammar-guided Mutation.

Environment

Tested on Ubuntu 20.04 with following environment.

  • python v3.6.13
  • npm v8.19.1
  • n v9.0.0

General Setup

For nodejs and npm and nodejs.

sudo apt install npm -y
sudo npm install -g n
sudo n latest                

For npm dependency

cd TransFuzz
sudo npm -i

For python dependency

cd TransFuzz
pip3 install -r requirement.txt

Tips

configuration

Please refer src/conf/README.md for writing the configuration file.

preprocess

cd src
python3 preprocess/pro_data.py <conf ABSPATH>

After this step, you can get subtree dataset and leaf dataset in dataset dir.

fuzz

python3 main.py <conf ABSPATH>

reduce

python3 reduce/JSReduce.py <conf ABSPATH> <reduced bug path> <reduced testcase path>

About

An automated testing tool to fuzz JavaScript transpiler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published