How to use - williamniemiec/ExecutionFlow GitHub Wiki
- With Eclipse open, select your project, right click, go to
configure
and select the optionConvert to AspectJ Project
:
- After that, select your project again, right click, go to
AspectJ Tools
and selectConfigure AspectJ Build Path
:
- Go to the
Inpath
tab, selectAdd External JARs...
and choose application jar file :
- Click
Apply and Close
:
- Right-click on the project, select
Build Path
and selectConfigure Build Path...
:
- Click
Add External JARs...
and select the fileaspectjtools.jar
. After that, clickApply and Close
:
⚠ Warning: If there are previous versions of the application on this screen, remove all (except the current version) to avoid version conflict issues.
- After that, when running any test method (that meets the application's restrictions) the test paths will be generated:
Note: Keep the Eclipse window active while computing the test path; otherwise, the computation may take longer than anticipated.
Note that it is possible to compute all test paths of a package at once, just run JUnit on the package (left-click on the package, go to Run As
and select JUnit Test
).
To stop the application, use the Stop
button in the ExecutionFlow
window. Do not use the eclipse stop button, otherwise the original files will not be restored. This is because the stop of the Eclipse issues a SIGKILL
command, while the stop button in the ExecutionFlow
window issues a SIGTERM
command to terminate the application. See more about the difference between these two commands here.