Dynamic Program Slicer

Requirements:

  • Java 8
  • A project running JUnit 4+

strument -cp Instrumenter.jar edu.research.slicer.Main' Compile you How to run:

  • Instrument a project source code using the "Instrumenter.jar":
    • Consider a project path ~/project
    • Consider a project source code ~/project/src
    • Run 'java -Ddir="$HOME"/project/src -Dconstraints=/path/to/drop/constraints/file -Daction=instrument -cp Instrumenter.jar edu.research.slicer.Main'
    • Compile your project
  • Run the slicer:
    • java -Xmx2G -Xms1G -Dgraph=/path/to/generated/constraints -Dslice=/path/to/drop/slice -Dcoverage=/path/to/drop/coverage -DtestClasses="my.project.TestClass[::testMethod]" -DprojectClasspath="Your:project:classpath" -jar Slicer.jar

Feel free to contact me if you need help of want to report any bug.
Download: slicer.tar.gz