SpoonLabs / astor

Automatic program repair for Java with generate-and-validate techniques :v::v:: jGenProg (2014) - jMutRepair (2016) - jKali (2016) - DeepRepair (2017) - Cardumen (2018) - 3sfix (2018)
https://hal.archives-ouvertes.fr/hal-01321615/document
GNU General Public License v2.0
207 stars 106 forks source link

Command line argument -failing #225

Closed jose closed 4 years ago

jose commented 4 years ago

Hi,

Does the -failing argument support test suites, test cases, or both?

At the very beginning of section Command line arguments -failing argument is defined as 'test case':

-failing "failing test case" (if there are several failing test case, give them separated by the classpath separator (: in linux/mac  and ; in windows)

However, in section Command line arguments example Math-70 from Defects4J the same argument is defined as 'test class'

-failing org.apache.commons.math.analysis.solvers.BisectionSolverTest

Could you please clarify?

-- Best, Jose

martinezmatias commented 4 years ago

Hi @jose

Could you please clarify?

Thanks for remark, I updated the documentation. (commit da8a267)

Does the -failing argument support test suites, test cases, or both?

It supports test cases: the parameter allows to specify only the test cases that fail. Astor will automatically search for the other (passing) test cases used for validating regression.

Thanks! Regards Matias

jose commented 4 years ago

Thanks @martinezmatias, but it isn't clear yet.

You just said "It supports test cases: the parameter allows to specify only the test cases that fail." but your commit says "canonical names of classes with failing test cases". The former implies test methods and the latter implies test classes. I believe the latter is the correct definition right?

-- Best, Jose

martinezmatias commented 4 years ago

Hi @jose Sorry, my comment added more confusion. The latter explanation you mention (that one from the commit is the correct).

It supports test cases: the parameter allows to specify only the test cases that fail. Astor will automatically search for the other (passing) test cases used for validating regression.

I wanted to say that the parameter supports the name of class with test cases, and it does not support names of classes that correspond to Test Suites.

Regards Matias