Code Monkey home page Code Monkey logo

mutanerator's Introduction

Mutaneratorとは

Javaのプログラムに対して,ミュータント(少しだけ変更したプログラム)を生成する祖父東亜です. 他の多くのミュータント生成ツールは,Javaのバイトコードを書き換えてミュータントを生成しますが,Muteneratorはソースコードに対して書き換えを行います.

使い方

まずはGitHubからダウンロードして下さい. その後Jarファイルを生成して下さい. build/libs/Mutanerator-all.jarというファイルができていれば成功です.

git clone [email protected]:kusumotolab/Mutanerator.git
cd Mutanerator
./gradlew shadowJar

Jarファイルが実行できたら,同梱のサンプルプログラムに対して実行してみて下さい. 下記がコマンドラインの例です. log.csvというファイルとmutationsというフォルダができていれば成功です.

java -jar build/libs/Mutanerator-all.jar -f src/test/java/example/CloseToZero.java -l log.csv

-lオプションでログファイルを指定すると全てのミュータントに対するログを指定したファイルに吐きます.-lを指定しない場合はログを出力しません. ログファイルはCSVフォーマットです. 左から順に,ミュータントID(ディレクトリ名と同じ),適用したミューテイターの種類,変更した行,変更前テキスト,変更後テキスト,となっています.

1, ConditionalsBoundary, 6, "0 < value", "0 <= value"
2, ConditionalsBoundary, 9, "value < 0", "value <= 0"
3, Increments, 7, "value--", "value++"
4, Increments, 10, "value++", "value--"
5, NegateConditionals, 6, "0 < value", "0 >= value"
6, NegateConditionals, 9, "value < 0", "value >= 0"

mutanerator's People

Contributors

yoshikihigo avatar

Stargazers

h-yosiok avatar

Watchers

Jiachen Yang avatar Hiroshi Igaki avatar  avatar  avatar  avatar  avatar Hiroaki Murakami avatar  avatar  avatar matsuji avatar  avatar  avatar  avatar  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.