Skip to content

Conversation

@adam-enko
Copy link
Member

Add support for testing AGP projects that use kotlin-built-in.

I converted the existing requiredAgpMajorVersions check into a unit test. This will help verify that TestedVersionsSource doesn't accidentally filter out any of the tested versions. It could be a bit of a pain to maintain? But this test is quick and easy, and if it prevents a bug where a version is accidentally excluded, it'd be worth it. (We could use test coverage support on TeamCity? But I'm not sure how to add that, and it could be fragile or easy to ignore?)

Currently there are no test-projects for kotlin-built-in. These will be added in #4295.

Add support for testing AGP projects that use kotlin-built-in.

I converted the existing `requiredAgpMajorVersions` check into a unit test.
This will help verify that TestedVersionsSource doesn't accidentally filter out any of the tested versions.
It could be a bit of a pain to maintain? But this test is quick and easy, and if it prevents a bug where a version is accidentally excluded, it'd be worth it.
(We could use test coverage support on TeamCity? But I'm not sure how to add that, and it could be fragile or easy to ignore?)

Currently there are no test-projects for kotlin-built-in. These will be added in #4295.
@adam-enko adam-enko added the runner: Gradle plugin An issue/PR related to Dokka's Gradle plugin label Nov 24, 2025
@adam-enko adam-enko marked this pull request as ready for review November 24, 2025 14:18
@adam-enko adam-enko self-assigned this Nov 24, 2025
@whyoleg
Copy link
Collaborator

whyoleg commented Nov 25, 2025

TBH, for me it looks like complicating our Android-related IT infrastructure even more...
I will wait for the KBT team's review, but I feel that simply having min/max AGP version in test annotation, or even different version sources (and corresponding annotations) for AGP9 and AGP<9, will be sufficient.

@adam-enko
Copy link
Member Author

TBH, for me it looks like complicating our Android-related IT infrastructure even more... I will wait for the KBT team's review, but I feel that simply having min/max AGP version in test annotation, or even different version sources (and corresponding annotations) for AGP9 and AGP<9, will be sufficient.

if it helps, we can remove the conditional logic when we stop supporting AGP <9.

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