Skip to content

Defects4J

David edited this page Nov 2, 2017 · 5 revisions

How to use JDCallgraph with Defects4J:

  1. Download and setup Defects4J: Setup Instructions
  2. Edit the file defects4j/framework/projects/defects4j.build.xml:
  • Change line 102 from <junit printsummary="yes" haltonfailure="no" haltonerror="no" fork="no" showOutput="true"> to <junit printsummary="yes" haltonfailure="no" haltonerror="no" fork="yes" forkmode="once" showOutput="true">
  • Add next line 103: <jvmarg value="-javaagent:/path/to/jdcallgraph-0.1-agent.jar" />
  1. Run it:
  • defects4j checkout -p Lang -v 1b -w /tmp/Lang1b
  • defects4j compile -w /tmp/Lang1b
  • defects4j test -w /tmp/Lang1b
  1. JDCallgraph writes it results to /tmp/Lang1b/cg/* by default.
Clone this wiki locally