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

Feature/182: Add android build type to settings and use pitest created folder (if exists) #225

Merged
merged 7 commits into from
Jan 30, 2024

Conversation

lheimbs
Copy link
Contributor

@lheimbs lheimbs commented Jan 30, 2024

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

@lheimbs lheimbs marked this pull request as ready for review January 30, 2024 10:25
@lheimbs lheimbs force-pushed the Feature/182-buildtype branch from 7d21dd9 to aa1aac2 Compare January 30, 2024 11:35
Copy link
Contributor

@nikomall34 nikomall34 left a 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.

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"))) {
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

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>"

@lheimbs lheimbs force-pushed the Feature/182-buildtype branch from 198e6e1 to d42e577 Compare January 30, 2024 18:27
lheimbs and others added 7 commits January 30, 2024 19:52
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]>
Co-authored-by: nikomall34 <[email protected]>
Signed-off-by: Lennart Heimbs <[email protected]>
@lheimbs lheimbs force-pushed the Feature/182-buildtype branch from d42e577 to 7545ec9 Compare January 30, 2024 18:55
@lheimbs lheimbs merged commit 3b789e3 into main Jan 30, 2024
15 checks passed
@lheimbs lheimbs deleted the Feature/182-buildtype branch January 30, 2024 20:25
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