GZoltar / gzoltar

GZoltar - Java Library for Automatic Debugging http://www.gzoltar.com
Other
77 stars 34 forks source link

Fail to runTestMethods on command line #57

Closed Iroski closed 2 years ago

Iroski commented 2 years ago

Hi, sorry to bother you. I met a problem when try to use this script to run test method. After I list the test methods, I typed

java -javaagent:${GZOLTAR_AGENT_JAR}=destfile=${SER_FILE},buildlocation=${SRC_DIR},includes=${LOADED_CLASSES},excludes="",inclnolocationclasses=false,output="file" 
-cp ${GZOLTAR_CLI_JAR}:${LIB_DIR} \
com.gzoltar.cli.Main runTestMethods \
--testMethods ${PROJECT_DIR}/listTestMethods.txt \
--collectCoverage

and it shows

Failed to find Premain-Class manifest attribute in /home/iros/paper/gzoltar/lib/com.gzoltar.agent-1.7.2.201905090602.jar
Error occurred during initialization of VM
agent library failed to init: instrument

the versions are: defects 2.0.0+gzoltar 1.7.3+java 8 / defects 1.2.0+gzoltar 1.7.2+java 7. I tried both but all failed. I wonder if i missed something or made mistakes. thanks!