Last active
October 13, 2020 15:52
-
-
Save mabdi/52378b85c9a916dee8cd92c27ec75512 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| config readable reducer prettifier amplifiedClass targetClasses testClass result failedSelectorInOriginal selection notCoveredInOriginal | | |
amplifiedClass := RSResizeTest574. | |
config := SAConfig default. | |
testClass := amplifiedClass superclass. | |
targetClasses := testClass smallAmpTargetClasses. | |
result := testClass suite run. | |
failedSelectorInOriginal :=(result failures , result expectedDefects | |
collect: [ :failed | failed class lookupSelector: failed selector ]) | |
asOrderedCollection. | |
selection := config selection initializeWith: config. | |
notCoveredInOriginal := | |
(selection | |
initialAnalysisFor: {testClass} | |
targets: targetClasses | |
ignore: failedSelectorInOriginal) smallAmpUncovered. | |
reducer := (config oracleReducion initializeWith: config) | |
with: amplifiedClass | |
from: testClass | |
target: targetClasses | |
uncovered: notCoveredInOriginal. | |
reducer ignoredTestMethods: failedSelectorInOriginal. | |
readable := reducer makeReducedResult. | |
prettifier := config prettifier initializeWith: config. | |
prettifier prettify: readable. | |
SAASTHelper moveClassToFinal: readable. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment