Skip to content

Enable and introduce kotlin test fixtures #47

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

Open
wants to merge 4 commits into
base: studio-main
Choose a base branch
from

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
@@ -21,3 +21,6 @@ kotlin.code.style=official
# resources declared in the library itself and none from the library's dependencies,
# 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