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

Prototyping com.android.test module and shared tests in a com.android.lib module. #76

Merged
merged 7 commits into from
Mar 14, 2024

Conversation

handstandsam
Copy link
Owner

@handstandsam handstandsam commented Mar 14, 2024

Findings:

  • You CAN put tests in a "com.android.library" module, include that via an app/androidTestImplementation and get it to run
  • You CAN put tests in a "com.android.library" module, include that via an android-tests/implementation and get it to run
  • There problem about "right clicking and running" a test that exists in a com.android.library module does exist, but this is still a huge breakthrough for sharing.
  • You can just use compileOnly(project(':app')) to know about it's Activities to use from espresso, etc. That way it doesn't need to actually build that code into the final test APK.

@handstandsam handstandsam changed the title Prototyping com.android.test module and shared tests in a com.android… Prototyping com.android.test module and shared tests in a com.android.lib module. Mar 14, 2024
@handstandsam handstandsam merged commit cec6e0d into main Mar 14, 2024
3 checks passed
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.

1 participant