Skip to content

Conversation

@emartynov
Copy link

I found the snippet only for Java test fixtures. However, I believe the majority of projects are using Kotlin, and there will be a high demand for test fixtures written in Kotlin.

Updating snippet for Kotlin variant of test fixtures.

@emartynov emartynov changed the base branch from agp-8.7 to studio-main March 1, 2025 11:38
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
# Enbale test kotlin fixtures
# Can't find official documentation https://emartynov.medium.com/android-project-test-fixtures-dec50c5d8533

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://issuetracker.google.com/issues/259523353#comment21 might worth a mention? (The thread has a lot of info)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean to mention compatibility with tooling versions?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean that's the most official doc we have.

@micahjo7
Copy link
Contributor

micahjo7 commented Mar 3, 2025

Thank you for contributing to this recipe. Have you ran the recipe and verified the tests pass?

@emartynov
Copy link
Author

Thank you for contributing to this recipe. Have you ran the recipe and verified the tests pass?

Yes, I did run tests and they were green

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.

3 participants