-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add affected test computation parameters for emop #91
base: hybrid-emop
Are you sure you want to change the base?
Conversation
includeVariables = includeVariablesTemp; | ||
updateChecksums = updateChecksumsTemp; | ||
computeImpactedMethods = computeImpactedMethodsTemp; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why so much temps? and what are the temps for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like the parameter should be passed to the superclass of MonitorHybridMojo.java
which is ImpactedHybridMojo.java
which is later passed to HybridMojo.java
(in STARTS). This is the method I managed to come up with to tackle this parameter passing.
@@ -30,9 +30,12 @@ public class ImpactedHybridMojo extends HybridMojo { | |||
*/ | |||
protected boolean debug; | |||
|
|||
protected boolean computeAffectedTests; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pengyuejiang and I thought that this flag is for deciding whether to additionally compute affected classes. But the name suggests that you are computing affected tests. Can you please clarify? Also, can you please point us to a usage of this field?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it is used to control whether we want to additionally compute affected classes or not. The setComputeAffectedTests()
method further down is actually in STARTS and this boolean flag is used to enable/disable the relevant parameter in STARTS.
This PR adds a small change to be able to control whether we want to compute affected test classes or not from emop since the computation happens in STARTS actually.