-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feature/182: Add android build type to settings and use pitest created folder (if exists) #225
Conversation
7d21dd9
to
aa1aac2
Compare
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.
I guess for now we can leave it like this . Let's see how much time we have next week. Maybe we can find the way of the current selected buildtype.
...ate/src/main/kotlin/com/amos/pitmutationmate/pitmutationmate/configuration/SettingsEditor.kt
Outdated
Show resolved
Hide resolved
val path = getReportPath() | ||
if (buildType != null && Files.exists(Path.of("$path/$buildType"))) { | ||
return Path.of("$path/$buildType") | ||
} else if (Files.exists(Path.of("$path/debug"))) { |
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.
I think you for got to test for release buidtype here right?
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.
I just kept it as was before. If a build type is set - try that one. Otherwise try debug (what we were doing before by default) and then use no build type
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.
Ok than I would change the message to
val multilineText = "<html>The Android build type of which you want to use for the pitest results from.<br/>If kept empty, <c>debug</c> is tried if it is an Android project.</html>"
198e6e1
to
d42e577
Compare
buildType is for android projects. verbose is to easily enable verbosity in pitest runs. Signed-off-by: Lennart Heimbs <[email protected]>
Signed-off-by: Lennart Heimbs <[email protected]>
Signed-off-by: Lennart Heimbs <[email protected]>
Signed-off-by: Lennart Heimbs <[email protected]>
Signed-off-by: Lennart Heimbs <[email protected]>
Co-authored-by: nikomall34 <[email protected]>
Signed-off-by: Lennart Heimbs <[email protected]>
d42e577
to
7545ec9
Compare
Also fixes settings not being able to get applied in an easy way
I'm still trying to find a way to get the info automatically but haven't found a good solution yet, so adding the config setting as a backup