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

Move GradlePropertiesBuilder test util to separate class #3906

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

adam-enko
Copy link
Member

Moving GradlePropertiesBuilder to a separate class will permit reusing it in Dokka integration tests that will be introduced in PR #3904

@adam-enko adam-enko added the runner: Gradle plugin An issue/PR related to Dokka's Gradle plugin label Nov 5, 2024
@adam-enko adam-enko self-assigned this Nov 5, 2024
Moving GradlePropertiesBuilder to a separate class will permit reusing it in Dokka integration tests that will be introduced in PR #3904
@adam-enko adam-enko force-pushed the adam/feat/move-GradleProperties-builder branch from e4b59f3 to eaa8bfa Compare November 5, 2024 15:03
@adam-enko adam-enko marked this pull request as ready for review November 5, 2024 15:04
/**
* Specifies the scheduling priority for the Gradle daemon and all processes launched by it.
*/
var daemonSchedulingPriority: SchedulingPriority? = SchedulingPriority.Low,
Copy link
Contributor

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?

Copy link
Member Author

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?

Comment on lines +15 to +17
val gradle: GradleArgs = GradleArgs(),
val dokka: DokkaArgs = DokkaArgs(),
val kotlin: KotlinArgs = KotlinArgs(),
Copy link
Contributor

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.

@adam-enko adam-enko merged commit 58327ac into master Nov 7, 2024
14 checks passed
@adam-enko adam-enko deleted the adam/feat/move-GradleProperties-builder branch November 7, 2024 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
runner: Gradle plugin An issue/PR related to Dokka's Gradle plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants