Skip to content
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

Open
wants to merge 2 commits into
base: hybrid-emop
Choose a base branch
from

Conversation

mmk-1
Copy link

@mmk-1 mmk-1 commented Nov 12, 2023

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.

Comment on lines 69 to 71
includeVariables = includeVariablesTemp;
updateChecksums = updateChecksumsTemp;
computeImpactedMethods = computeImpactedMethodsTemp;
Copy link
Contributor

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?

Copy link
Author

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;
Copy link
Contributor

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?

Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants