You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to generate the dynamic slice for the junit assertions in a test class of the joda-time subject. However, the script throws error such as:
looking for LINENO:324:FILE:org.joda.time.tz.TestBuilder
None
Traceback (most recent call last):
File "run_benchmarks.py", line 207, in
run_slicer4j(project, jar_name, project_arg, extra_libs, sc_file, slice_line)
File "run_benchmarks.py", line 148, in run_slicer4j
line = sc.split(", ")[0]
AttributeError: 'NoneType' object has no attribute 'split'
Is it because the tool does not instrument test classes? Not sure if I am making any mistake, any help would be highly appreciated!
The text was updated successfully, but these errors were encountered:
At the moment, Slicer4J requires all classes to be in the packaged jar. So you can only slice from either the main classes, or modify the build system to include the test classes into the jar to be sliced.
I am trying to generate the dynamic slice for the junit assertions in a test class of the joda-time subject. However, the script throws error such as:
looking for LINENO:324:FILE:org.joda.time.tz.TestBuilder
None
Traceback (most recent call last):
File "run_benchmarks.py", line 207, in
run_slicer4j(project, jar_name, project_arg, extra_libs, sc_file, slice_line)
File "run_benchmarks.py", line 148, in run_slicer4j
line = sc.split(", ")[0]
AttributeError: 'NoneType' object has no attribute 'split'
Is it because the tool does not instrument test classes? Not sure if I am making any mistake, any help would be highly appreciated!
The text was updated successfully, but these errors were encountered: