rjust / defects4j

A Database of Real Faults and an Experimental Infrastructure to Enable Controlled Experiments in Software Engineering Research
MIT License
717 stars 299 forks source link

Are the commands test -r and test equivalent? #569

Closed fghccv closed 3 months ago

fghccv commented 4 months ago

If I only modify the faulty code,are the commands test -r and test equivalent?

rjust commented 4 months ago

In most cases yes, but it depends on the modification. If the modification results in importing and calling additional classes, then the set of relevant tests may be larger than the default set in Defects4J.