-
Notifications
You must be signed in to change notification settings - Fork 408
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
Move GradlePropertiesBuilder test util to separate class #3906
Conversation
Moving GradlePropertiesBuilder to a separate class will permit reusing it in Dokka integration tests that will be introduced in PR #3904
e4b59f3
to
eaa8bfa
Compare
/** | ||
* Specifies the scheduling priority for the Gradle daemon and all processes launched by it. | ||
*/ | ||
var daemonSchedulingPriority: SchedulingPriority? = SchedulingPriority.Low, |
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.
JC: why do you need this option in tests?
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.
A few reasons:
- My big-picture far-future plan is to create a general TestKit utilities library, and so I wanted to include as many options as possible to make this utility comprehensive.
- "Just in case" and "why not?"
- If a test fails I might open up the project in my IDE/terminal and it's helpful to avoid a high prio daemon (since it's only a test project), but I also want to make sure I have the same properties as the test, for consistency.
These aren't strong reasons, so maybe there's a good reason not to have it?
val gradle: GradleArgs = GradleArgs(), | ||
val dokka: DokkaArgs = DokkaArgs(), | ||
val kotlin: KotlinArgs = KotlinArgs(), |
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 like this separation of args! We should do the same in KGP/IT/BuildOptions
.
Moving GradlePropertiesBuilder to a separate class will permit reusing it in Dokka integration tests that will be introduced in PR #3904